Problem with "Money per 5 Minutes"

I want to make a System “Money per 5 Minutes” i am trying and it’s not working, Please help me!

Ps. Stats is done (SpaceBux), so Without “Instance.new” it’s possible?

Can i see the script of the 5 minute money giver and the leaderboard

while wait(300) do

for _, v in pairs(game.Players:GetPlayers()) do

v:WaitForChild("leaderstats").Cash.Value = v.leaderstats.Cash.Value + AMOUNT

end


end
1 Like

Okay, i will try that, thanks :hole:

while wait(300) do

	for _, v in pairs(game.Players:GetPlayers()) do

		v:WaitForChild("leaderstats").Cash.Value += AMOUNT

	end


end

I added :WaitForChild so the script won’t error and stop once it fails finding leaderstats or the player just joined the server and the leaderstats folder has not been made.

1 Like

Yea, i was on my way to just edit that lol

Ok, it’s working, thanks bois :+1:

No worries!

(More Characters!)