Tool is on different position than in animation editor (Motor6D)

I try to make a tool with Motor6D with the tutorial of headstack. The problem is the Motor6D I insert in Animation Rig has C1 position on (x,y,z) but the Motor6D I insert with a script in the players has C1 position (0,0,0) so the Tool is in the player and you can’t see it. I tried to change it with this script:

local char = plr.Character
	char.HumanoidRootPart.ToolGrip.Part0 = char.HumanoidRootPart
	char.HumanoidRootPart.ToolGrip.Part1 = location
	local C1 = char.HumanoidRootPart.ToolGrip.C1
	C1.Position = CFrame.new(0,0,0) + Vector3.new(1,1,1)
	char.HumanoidRootPart.ToolGrip.C1 = C1

I also tried this:

   local char = plr.Character
	char.HumanoidRootPart.ToolGrip.Part0 = char.HumanoidRootPart
	char.HumanoidRootPart.ToolGrip.Part1 = location
	local C1 = char.HumanoidRootPart.ToolGrip.C1
	C1.Position = Vector3.new(1,1,1)
	
	char.HumanoidRootPart.ToolGrip.C1 = C1
	

This Error came on both tries:
Position cannot be assigned to
Anyone know how I could change the position of the Motor6D or how I could solve the problem otherwise?

1 Like