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: Values won't work

Previous Thread :: Next Thread 
Mathman314 is not online. Mathman314
Joined: 31 Jul 2009
Total Posts: 556
11 Jul 2011 10:24 AM
local players = game.Players:GetChildren()
players.Winners.Value = false
players.Dead.Value = false
players.GameWinners.Value = false

It says attempting to identify a nil value: Winners, Dead, etc.
I think I messed something up on the first line...
Btw, this is just 'part' of a script...
Report Abuse
wafles26122 is not online. wafles26122
Joined: 14 Jun 2010
Total Posts: 958
11 Jul 2011 10:33 AM
Do you have a leaderboard that has winners and dead stats?
If it's a leaderboard stat it should be: players.leaderstats.Winners and player.leaderstats.Dead. Also if your going to get children you should do that for all players. example:

local players = game.Players:GetChildren()
for i=1, #players do
players.Winners.Value = false
players.Dead.Value = false
players.GameWinners.Value = false
end
Report Abuse
Mathman314 is not online. Mathman314
Joined: 31 Jul 2009
Total Posts: 556
11 Jul 2011 10:37 AM
No leaderstats, and it still didn't work...
Report Abuse
wafles26122 is not online. wafles26122
Joined: 14 Jun 2010
Total Posts: 958
11 Jul 2011 10:40 AM
So there is a bool value in the player named exactly :Dead Winners, exc?
Report Abuse
Mathman314 is not online. Mathman314
Joined: 31 Jul 2009
Total Posts: 556
11 Jul 2011 10:43 AM
Yes... I even checked by doing this (in solo mode, when your name = Player)

local players = game.Players.Player
players.Winners.Value = false
players.Dead.Value = false
players.GameWinners.Value = false

and it worked :/
Report Abuse
wafles26122 is not online. wafles26122
Joined: 14 Jun 2010
Total Posts: 958
11 Jul 2011 11:03 AM
then put local players = game.Players:GetChildren()
for i=1, #playerd do
players[i].Winners.Value = false
players[i].Dead.Value = false
players[i].GameWinners.Value = false
end
Report Abuse
wafles26122 is not online. wafles26122
Joined: 14 Jun 2010
Total Posts: 958
11 Jul 2011 11:03 AM
for i=1, #players*
Report Abuse
Mathman314 is not online. Mathman314
Joined: 31 Jul 2009
Total Posts: 556
11 Jul 2011 11:12 AM
Thanks, that worked fine ^-^
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