Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- wait(5)
- FoodsSystem.ToggleVoteEvent:FireAllClients(true)
- wait(10)
- FoodsSystem.ToggleVoteEvent:FireAllClients(false)
- if FoodsSystem.Food1.Value > FoodsSystem.Food2.Value then
- print("Option 1 Won")
- for i, v in pairs(game.Players:GetPlayers()) do
- game.ServerStorage.Foods.Burger:Clone().Parent = v.Backpack
- end
- elseif FoodsSystem.Food2.Value > FoodsSystem.Food1.Value then
- print("Option 2 Won")
- for i, v in pairs(game.Players:GetPlayers()) do
- game.ServerStorage.Foods.Sandwich:Clone().Parent = v.Backpack
- end
- elseif FoodsSystem.Food1.Value == FoodsSystem.Food2.Value then
- print("Tied Vote")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement