Advertisement
Sungmingamerpro13

Endings with Reward

Sep 23rd, 2022
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. --- Good Ending ---
  2.  
  3. function Good_Ending(Good)
  4. EndEvent:FireAllClients(Good)
  5. for i, player in pairs(game.Players:GetPlayers()) do
  6. local AddWins = 1
  7. player.leaderstats.Wins.Value = player.leaderstats.Wins.Value + AddWins
  8. end
  9. end
  10.  
  11. --- Bad Ending ---
  12.  
  13. function Bad_Ending(Bad)
  14. EndEvent:FireAllClients(Bad)
  15. for i, player in pairs(game.Players:GetPlayers()) do
  16. local AddWins = 1
  17. player.leaderstats.Wins.Value = player.leaderstats.Wins.Value + AddWins
  18. end
  19. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement