Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Earn Cash by playing [Easy Script] Help!?

Basically i need a script that gives you Cash by playing.

For instance

When a Player plays my game for 1 minute he gets 100+ Cash

game.Players.PlayerAdded:Connect(function(plr)

	local leaderstats = Instance.new("Folder")
	leaderstats.Name = "leaderstats"
	leaderstats.Parent = plr
	
	local cash = Instance.new("IntValue")
	cash.Name = "Cash"
	cash.Value = 0
	cash.Parent = leaderstats
	
end)

1 comment

0

Dude, can we make a game together? I will be the scripter.

1 answer

✓ Accepted answer

Do this and insert it in a Script.

game.Players.PlayerAdded:Connect(function(plr)
	while true do
		wait(60)
		local lead = plr:WaitForChild("leaderstats")
		lead.Cash.Value = lead.Cash.Value +100
	end
end)

There have a nice day.

1 comment

0

Thank you very much!

This discussion is preserved as it was. New answers, comments, and votes are closed.