Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- Variables ---
- local AddVoteEvent = game.ReplicatedStorage.FoodsSystem.AddVoteEvent
- local Option1 = game.ReplicatedStorage.FoodsSystem.Food1
- local Option2 = game.ReplicatedStorage.FoodsSystem.Food2
- --- Add Vote ---
- AddVoteEvent.OnServerEvent:Connect(function(plr, Option)
- if Option == 1 then
- Option1.Value += 1
- elseif Option == 2 then
- Option2.Value += 1
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement