fishy1000
|
  |
| Joined: 26 May 2008 |
| Total Posts: 497 |
|
|
| 21 Jun 2014 05:45 PM |
game.Players.PlayerAdded:connect(function(player) local leaderstats = Instance.new('IntValue') leaderstats.Parent = player leaderstats.Name = "leaderstats" local money = Instance.new('IntValue') money.Parent = player.leaderstats money.Name = "Cash" money.Value = 500 --Change 0 to how much money you want the person to start with end)
---
That's my script for leaderstats.
How would I make it give 50 every 5 minutes to all players? |
|
|
| Report Abuse |
|
|
| 21 Jun 2014 05:48 PM |
In a regular script in workspace:
while wait(300) do for i,v in pairs(game.Players:GetChildren()) do v.leaderstats.IntValue.Value = v.leaderstats.Intvalue.Value + 50 end end
-[::ƧѡÎḾḠΰῩ::]-[::Helper of Scripting and Writer of Wikis::] |
|
|
| Report Abuse |
|