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
|
  |
| Joined: 22 May 2012 |
| Total Posts: 120 |
|
| |
|
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
|
  |
| 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
|
  |
| 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 |
|
|