I want to rotate the arm of the player but without using animations. I tried using CFrame but found nothing. I have a script which activates when the player equips a tool, I want that script to rotate the players right arm 90 degrees forward.
✓ ANSWER ACCEPTED
How to move player arm with script?
3 answers
✓ Accepted answer
You can use Motor6d to do this. This video may help https://www.youtube.com/watch?v=99FymB2b9t4
1 comment
0
When I equip a tool, the arm will move but when I unequip the tool, the arm doesn’t move and in the output, I get “Stack begin” and “Stack end”
Arms (and other body parts) are connected to each other with a Motor6d. You can change the rotation by editing the C0/C1 properties of the Motor6D that connects the arm and the torso
i assume you are using R6
local script:
local player = game.Players.LocalPlayer -- getting the player
local char
repeat wait() char = player.Character until char -- getting the character
wait(5)
-- \\ this part also works in server script. the above parts only in local script
local RShoulderJoint = char.Torso["Right Shoulder"] -- getting the joint
if RShoulderJoint then
RShoulderJoint.C0 = RShoulderJoint.C0 * CFrame.Angles(math.rad(90),0,0) -- rotating the C0 by 90 degrees
end
-- //
Motor6d
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
Motor6D