DumbShit

Clone Tycoon

Apr 1st, 2020
529
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. local plrs = game:getservice("players")
  2.  
  3. local myplr = plrs.localplayer
  4. local stats = myplr.leaderstats
  5. local inv = myplr.inventory
  6.  
  7. local cash = (2000000000 - stats.cash.value)
  8. local gems = (2000000000 - stats.gems.value)
  9. local stone = (10 - inv.stone.value)
  10. local coal = (10 - inv.coal.value)
  11. local iron = (10 - inv.iron.value)
  12. local gold = (10 - inv.gold.value)
  13. local diamonds = (10 - inv.diamonds.value)
  14.  
  15. workspace.events.datastores.loadstep:fireserver("cash", cash)
  16. workspace.events.datastores.loadstep:fireserver("gems", gems)
  17. workspace.events.datastores.loadstep:fireserver("stone", stone)
  18. workspace.events.datastores.loadstep:fireserver("coal", coal)
  19. workspace.events.datastores.loadstep:fireserver("iron", iron)
  20. workspace.events.datastores.loadstep:fireserver("gold", gold)
  21. workspace.events.datastores.loadstep:fireserver("diamonds", diamonds)
Add Comment
Please, Sign In to add comment