Advertisement
Sungmingamerpro13

VotingGui Story game

Aug 15th, 2022 (edited)
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. local VoteSystem = game.ReplicatedStorage.VoteSystem
  2.  
  3. VoteSystem.TogglePollEvent:FireAllClients(false)
  4.  
  5. wait(5)
  6.  
  7. VoteSystem.TogglePollEvent:FireAllClients(true)
  8. -- Timer Here
  9.  
  10. wait(5)
  11.  
  12. VoteSystem.TogglePollEvent:FireAllClients(false)
  13.  
  14. if VoteSystem.Option1.Value >= VoteSystem.Option2.Value then
  15. print("Good Ending!")
  16. elseif VoteSystem.Option1.Value < VoteSystem.Option2.Value then
  17. print("Bad Ending!")
  18. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement