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: What the?

Previous Thread :: Next Thread 
joshhax is not online. joshhax
Joined: 08 May 2013
Total Posts: 390
25 Jul 2013 12:40 PM
It doesnt say anything in the output. It worked two days before but now it will not.

local playerStats = {}

game.Players.PlayerAdded:connect(function(player)
local leaderstats = Instance.new("Model", player)
leaderstats.Name = "leaderstats"

local money = Instance.new("IntValue", leaderstats)
money.Name = "DaysSurvived"
money.Value = 0

playerStats[player] = leaderstats
end)

while true do
for player, stats in ipairs(playerStats) do
stats.money.Value = stats.money.Value + 1
print "Leaderstats Updated"
end
wait(120)
end
Report Abuse
joshhax is not online. joshhax
Joined: 08 May 2013
Total Posts: 390
25 Jul 2013 12:54 PM
Please help the noob scripter :c
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
25 Jul 2013 12:56 PM
Try adding a wait right after the playeradded
Report Abuse
joshhax is not online. joshhax
Joined: 08 May 2013
Total Posts: 390
25 Jul 2013 01:04 PM
The leaderboard is present it just doesnt update.
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