Hai! I'm working on a game behind bars and I was working on the bank, I have a cash system in place, but don't know how to make the value go up or down!
--Da code:
game.Players.PlayerAdded:connect(function(p)
local stats = Instance.new("IntValue", p)
stats.Name = "leaderstats"
local money = Instance.new("IntValue", stats)
money.Name = "Cash"
money.Value = 100
I was thinking something like:
function hit(hit)
game.players.player.propirity.cash = cash + 1000 -- propirity is a real intvalue, I checked.
O.O so. um. I think thats it?
thanks, archmantella13(AKA ANE_bot)

1 comment
It will not find the player because no value is set and you got to do player.leaderstats.Cash.Value = player.leaderstats.Cash.Value + 1000