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)
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.