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 make a characters arm point at a part?

How do I make a characters arm point at a part? Using the motor6d because the part will move around.

1 answer

✓ Accepted answer

Using the motor6d's Transform property you just set it to

CFrame.new(Arm.CFrame, Part.CFrame)

and that should work. If the position is off you just need to set it to this instead.

local angles = CFrame.new(Arm.CFrame, Part.CFrame)
angles = angles - angles.p

Make sure you use it in the RunService's "Stepped" function.

Hope this helped

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