Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do you reference arms and legs?

Asked by 7 years ago

Pretty simple question but how would I reference arms and legs within a script that belong to "Player", I'm assuming it's not Left_arm, and Torso and Head are self explanatory so I don't need those. Thanks for the help!

0
Since there's a space in the name, you have to use brackets. character["Left Arm"].BrickColor etc. Perci1 4988 — 7y
0
Thanks! noob1126 34 — 7y

1 answer

Log in to vote
-1
Answered by 7 years ago
Edited 7 years ago
workspace.Player1:FindFirstChild("Right Arm")

or

workspace.Player1:FindFirstChild("Right Arm").BrickColor = BrickColor.new("New Yeller")

or

game.Players.Player1.Character:FindFirstChild("Right Arm").BrickColor = BrickColor.new("New Yeller")
0
Thanks but I mean if I were to reference the part as in "Player.Character.Left_Arm.Brickcolor = Brickcolor.new (252,0,0)" noob1126 34 — 7y
Ad

Answer this question