generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Leaderboard Money stops after you buy??

Previous Thread :: Next Thread 
TREVOR818730 is not online. TREVOR818730
Joined: 03 May 2009
Total Posts: 4443
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
callofrobloxiamw3 is not online. callofrobloxiamw3
Joined: 28 May 2011
Total Posts: 488
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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image