Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local plrs = game:getservice("players")
- local myplr = plrs.localplayer
- local stats = myplr.leaderstats
- local inv = myplr.inventory
- local cash = (2000000000 - stats.cash.value)
- local gems = (2000000000 - stats.gems.value)
- local stone = (10 - inv.stone.value)
- local coal = (10 - inv.coal.value)
- local iron = (10 - inv.iron.value)
- local gold = (10 - inv.gold.value)
- local diamonds = (10 - inv.diamonds.value)
- workspace.events.datastores.loadstep:fireserver("cash", cash)
- workspace.events.datastores.loadstep:fireserver("gems", gems)
- workspace.events.datastores.loadstep:fireserver("stone", stone)
- workspace.events.datastores.loadstep:fireserver("coal", coal)
- workspace.events.datastores.loadstep:fireserver("iron", iron)
- workspace.events.datastores.loadstep:fireserver("gold", gold)
- workspace.events.datastores.loadstep:fireserver("diamonds", diamonds)
Add Comment
Please, Sign In to add comment