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: attempt to get length of global 'killed' (a userdata value)

Previous Thread :: Next Thread 
marioblox1094 is not online. marioblox1094
Joined: 14 Aug 2010
Total Posts: 1839
29 Mar 2012 04:18 PM
killer = game.Players:GetChildren()
for kills = 1, #killer do
if (killer[kills]:FindFirstChild("ServerNum")) ~= nil then
if killer[kills].ServerNum.Value == server then
tool = Instance.new("Tool", killer[kills].Backpack)
tool.Name = "Loading"
tool.CanBeDropped = false
killed = killer[kills].Backpack
for you = 1, #killed do -------------------------------------------HERE!!!!!
killed[you].Enabled = true
end
tool:Destroy()
end
end
end
Report Abuse
3lex33 is not online. 3lex33
Joined: 08 Oct 2008
Total Posts: 5220
29 Mar 2012 04:20 PM
Counting length of backpack wont do well. Maybe you wanted to do #(killed:GetChildren())?
Report Abuse
marioblox1094 is not online. marioblox1094
Joined: 14 Aug 2010
Total Posts: 1839
29 Mar 2012 04:21 PM
Oh yeah!! I forgot :GetChildren()!!
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