how to make a script that gives cash every few seconds code example
Example: how to make a script that gives cash every few seconds
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 --Starter Cash
while true do
wait(5) --Replace "5" With The Seconds You Want The Script To Give money after.
money.Value = money.Value + 100
end
end) --Script By Rigby#9052 on Discord