Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local VotingValues = game.ReplicatedStorage.VotingValues
- VotingValues.VoteEvent.OnServerEvent:Connect(function(player, previous, chosen)
- local votes = VotingValues[chosen]
- votes.Value = votes.Value + 1
- if previous ~= nil then
- local prev = VotingValues[previous]
- prev.Value = prev.Value - 1
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement