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
 

How would I find everyones Humanoid

Previous Thread :: Next Thread 
Shockfi is not online. Shockfi
Joined: 22 May 2012
Total Posts: 120
24 May 2012 03:40 PM
What would i write to find everyone in games humanoid?
Report Abuse
Shockfi is not online. Shockfi
Joined: 22 May 2012
Total Posts: 120
24 May 2012 03:50 PM
Bump?
Report Abuse
gamehero is not online. gamehero
Joined: 12 Jun 2007
Total Posts: 1455
24 May 2012 03:52 PM
It would be this. Yeah, it probably doesn't not need to be this big, but whatever.

p = game.Players:GetPlayers()
for i=1,#p do
char = p[i].Character
if char ~= nil then
h = char:findFirstChild("Humanoid")
if h ~= nil then
print(h)
end
end
end

Report Abuse
MrMcAero is not online. MrMcAero
Joined: 21 Apr 2012
Total Posts: 671
24 May 2012 03:52 PM
Well. This would go to each humanoid one by 1 very quickly.

for _,n in pairs(game.Players:GetChildren()) do
if n.Character then
if n.Character:findFirstChild("Humanoid") then
--Stuff to do to Humanoid.
end
end
end

MrMcAero
Report Abuse
MrMcAero is not online. MrMcAero
Joined: 21 Apr 2012
Total Posts: 671
24 May 2012 03:53 PM
@ <​My Code>

That would repeatedly do that thing. use the one above me.

MrMcAero
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