Right Shoulder C0 (Motor6D) won't move the Right Upper Arm

Hello i want to point the RightUpperArm to the screen for my gun game.
The head rotate but not the Right Arm.
The gun is inside of a Tool and when i equip it, i parent it to a folder named “MISC” (cause the vertexcolor of the gun doesn’t work in a character)

local handle = Tool.Handle
	handle.Welded.Part1 = rightUpperArm
	handle.Anchored = false
	handle.Parent = MiscFolder
	handle.Name = ""

So i change his Motor6D:

character.RightUpperArm.RightShoulder.C0 = CFrame.new(character.RightUpperArm.RightShoulder.C0.Position) * CFrame.Angles(math.rad(AngleX),0,0)

I use R15
The C0 Orientation is perfectly calculated: X goes to -90 to 90
Maybe the C0 is blocked by something?

1 Like

try using the Motor6D.Transform property instead of changing C0 or C1. You’re actually supposed to use Transform for any animation purposes because it’s optimized for that

is Transform the part’s CFrame or the c0’s CFrame?

it is a separate property of Motor6D. Also please read the documentation I attached

This don’t work (i guess i do wrong)

runService.RenderStepped:Connect(function()
	if script.Running.Value and humanoidpart then
		ls.Transform = CFrame.new(ls.C0.Position) * CFrame.Angles(math.rad(AngleX),0,0)
		rs.Transform = CFrame.new(rs.C0.Position) * CFrame.Angles(math.rad(AngleX),0,0)
	end
end)

Nevermind i found a solution thanks anyway

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.