Characters right arm not rotating?

Im currently trying to rotate the right arm on the character by 90 degrees on the y axis. I try and rotate it but nothing rotates.

local animation = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(script.Parent:WaitForChild("Click"))

script.Parent.Equipped:Connect(function()
	animation:Play()
		local motor = game.Players.LocalPlayer.Character.Torso:FindFirstChild("Right Shoulder", true)
	motor.Transform = motor.Transform * CFrame.Angles(math.rad(90),0,0)
end)

script.Parent.Unequipped:Connect(function()
	animation:Stop()
	local motor = game.Players.LocalPlayer.Character.Torso:FindFirstChild("Right Shoulder", true)
	motor.Transform = motor.Transform * CFrame.Angles(math.rad(0),0,0)
end)

If anyone knows whats going on please reply!

I think the animation overrides the transform change that you made. To make sure that animations don’t affect the changes you make to the Transform property, you should update the Transform property on RunService.Stepped, but I’m not sure how it should be used in your script. I don’t think animatins would change the C0, so another option would be changing C0 instead of Transform.

Also, instead of math.rad(0) you should have math.rad(-90) as the first argument for CFrame.Angles in the function connected to the Unequipped event.