Advertisement
Sungmingamerpro13

VoteServer (Script)

May 14th, 2025
434
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 0.31 KB | None | 0 0
  1. local VotingValues = game.ReplicatedStorage.VotingValues
  2.  
  3. VotingValues.VoteEvent.OnServerEvent:Connect(function(player, previous, chosen)
  4.     local votes = VotingValues[chosen]
  5.     votes.Value = votes.Value + 1
  6.     if previous ~= nil then
  7.         local prev = VotingValues[previous]
  8.         prev.Value = prev.Value - 1
  9.     end
  10. end)
  11.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement