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 » Scripters
Home Search
 

Re: How to find a body part of any player

Previous Thread :: Next Thread 
CatsInTheAttic is online. CatsInTheAttic
Joined: 23 Dec 2009
Total Posts: 32
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
ExtremeBuilder15 is online. ExtremeBuilder15
Joined: 01 May 2012
Total Posts: 3176
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 is not online. 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
BloodDragonII is not online. BloodDragonII
Joined: 05 May 2012
Total Posts: 1187
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
zackturbo52 is not online. zackturbo52
Joined: 24 May 2016
Total Posts: 63
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
zackturbo52 is not online. zackturbo52
Joined: 24 May 2016
Total Posts: 63
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
128Gigabytes is not online. 128Gigabytes
Joined: 17 Apr 2014
Total Posts: 3616
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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