how to make a script that gives cash ever every few seconds in roblox studio code example
Example: how to make a script that gives cash ever every few seconds in roblox studio
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