Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Variables
- local VoteRemotes = game.ReplicatedStorage.VoteRemotes
- local VoteValues = game.ReplicatedStorage.VoteValues
- -- Add Vote
- VoteRemotes.AddVoteEvent.OnServerEvent:Connect(function(player, Option)
- print("I won the vote Option"..Option)
- if Option == 1 then
- VoteValues.Option1.Value += 1
- elseif Option == 2 then
- VoteValues.Option2.Value += 1
- elseif Option == 3 then
- VoteValues.Option3.Value += 1
- elseif Option == 4 then
- VoteValues.Option4.Value += 1
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement