Modifying motor6d to face point?

How can I modify Right Shoulder motor6d so I can make right arm point mouse point?

You will need to change the C0 or C1 of the motor6D C0 usually mean Cframe of part 0 and C1 mean Cframe of part 1 so each render step you can make the arm to point at the mouse with this script:

local char = game.Player.LocalPlayer.Character
local motor = char. ----- your shoulder here and then add .Motor6D
local Mouse = game.Player.LocalPlayer:GetMouse()
local armOffset = char.UpperTorso.CFrame:Inverse() * char.RightUpperArm.CFrame -- change this if you want
 RunService.Heartbeat:Connect(function()
                    
	local cframe = CFrame.new( --[[here add your arm or shoulder must include .Position]]    , mouse.Hit.Position) * CFrame.Angles(math.pi/2, 0, 0)
	motor.C0 = armOffset * char.UpperTorso.CFrame:toObjectSpace(cframe) --- change this too if you want
end)
2 Likes