|
| 02 Dec 2017 10:18 AM |
| I was wondering what the code is for finding the torso, or any other body part, of any player in a game. |
|
|
| Report Abuse |
|
|
|
| 02 Dec 2017 10:19 AM |
You could do Character["Left Arm"] or Character:FindFirstChild("Left Arm") to find the left arm or any other body part
|
|
|
| Report Abuse |
|
|
igrach2
|
  |
| Joined: 09 Mar 2017 |
| Total Posts: 252 |
|
|
| 02 Dec 2017 10:23 AM |
local Players=game.Players while wait(2) do for _,p in ipairs(Players:GetPlayers())do local char=p.Character if char then wait() for _,v in ipairs(char:GetChildren())do print(p,v) end end end end |
|
|
| Report Abuse |
|
|
|
| 02 Dec 2017 10:47 AM |
| player.Character:FindFirstChild("WhatBodyPartYouwanttofind") and you can use a for loop and :GetPlayers() to iterate through every character model and get the body part from each players character |
|
|
| Report Abuse |
|
|
|
| 02 Dec 2017 10:47 AM |
LeftArm
RightArm
RightShoulder
LeftShoulder
LeftLeg
RightLeg
Character makes up your body. You can do Character:FindFirstChild("RightLeg") -- You can replace with any of the above or any other body parts I haven't listed.
|
|
|
| Report Abuse |
|
|
|
| 02 Dec 2017 11:00 AM |
Yeah, Space it out like Right Arm, Left Arm, Left Leg, and Right Leg. I forgot to do..
ROBLOX:Destroy()
|
|
|
| Report Abuse |
|
|
|
| 02 Dec 2017 11:11 AM |
local function findCharacterChildren(name, recurse) local output = {} local players = game.Players:GetPlayers() for x = 1, #players, 1 do local player = players[x] if (player.Character and player.Character:FindFirstChild(name, recurse)) then output[#output + 1] = player.Character:FindFirstChild(name, recurse); end end return (output); end
local leftArms = findCharacterChildren("Left Arm") |
|
|
| Report Abuse |
|
|