|
| 11 Oct 2011 09:12 PM |
function Entered(player) wait()
if player:findFirstChild("leaderstats") ~= nil then player.leaderstats:remove() end
stats = Instance.new("IntValue") stats.Parent = player stats.Name = "leaderstats"
money = Instance.new("IntValue") money.Parent = stats money.Name = "Pumpkins" money.Value = 0
money = Instance.new("IntValue") money.Parent = stats money.Name = "Candy" money.Value = 0
money = Instance.new("IntValue") money.Parent = stats money.Name = "Money" money.Value = 0 while true do wait(2) money.Value = money.Value +10
end end
game.Players.PlayerAdded:connect(Entered)
c = game.Players:GetChildren() for i=1, #c do Entered(c[i]) end
It's meant to give you money automatically.. |
|
|
| Report Abuse |
|
|
|
| 11 Oct 2011 09:16 PM |
function Entered(player) wait()
if player:findFirstChild("leaderstats") ~= nil then player.leaderstats:remove() end
stats = Instance.new("IntValue") stats.Parent = player stats.Name = "leaderstats"
money = Instance.new("IntValue") money.Parent = stats money.Name = "Pumpkins" money.Value = 0
money = Instance.new("IntValue") money.Parent = stats money.Name = "Candy" money.Value = 0
money = Instance.new("IntValue") money.Parent = stats money.Name = "Money" money.Value = 0 while true do wait(2) money.Value = money.Value +10
end end
game.Players.PlayerAdded:connect(Entered)
this is all you need the other part is pointless and will give u multiples |
|
|
| Report Abuse |
|
|
dragon829
|
  |
| Joined: 12 Aug 2008 |
| Total Posts: 741 |
|
|
| 11 Oct 2011 09:19 PM |
| Just me or could it be the line player.leaderstats:remove() I'm horrible scepter but try to help |
|
|
| Report Abuse |
|
|