Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do I target a Player's limbs?

Whenever I attempt to Target something like a left arm, I can't because it has a space in between Left and Arm, so how do I do it?

2 answers

✓ Accepted answer

You can access them like you would indices in a table:

player.Character["Left Arm"]

MastaJames answered this well, but Im going to give it a shot of my own.

So normally when you are targetting something you would do

Player.Character.Head

but if it has a space in it, it can error. This is incorrect format.

Player.Character.Left Arm

That would error, and right there break your script. So to target the Left Arm, you will need to Add it in this format.

Player.Character["Left Arm"]

This successfully targets the Left Arm, and will not error.

I just took Mastas Answer and Made it longer explaining it in more detail.

Whichever answer you choose to accept will help you in the future.

2 comments

1

Actually, on the off chance that the Left Arm goes missing, or is renamed sometimes using :fingFirstChild("Left Arm") is a safer bet.

0

Normally I do use :findFirstChild("Left Arm") but he wanted a direct connection and It was easier to tell him exactly what he wanted.

This discussion is preserved as it was. New answers, comments, and votes are closed.