I have a question about Motor6Ds

These animations are for test purposes:

This is how it is supposed to look: https://gyazo.com/9a04a70e0ff09c40a9d3c944554a66f8

This is how it looks in game after I scripted the Motor6Ds: https://gyazo.com/80189a84cf1e2128f9d4ed61a34f39ca

The rig itself works good and is rigged correctly.

Here is the code:

local Motor6D = Instance.new("Motor6D")
	Motor6D.Part0 = Player.Character["Right Arm"]
	Motor6D.Part1 = Model["Right Arm"].Grip1
	Motor6D.C1 =  Assets.Models.ODMG.Welds["Right Arm"].Grip1.CFrame:Inverse() * Assets.Models.ODMG["Right Arm"].CFrame
	Motor6D.Name = "Grip1"
	Motor6D.Parent = Player.Character["Right Arm"]
	
	local Motor6D = Instance.new("Motor6D")
	Motor6D.Part0 = Player.Character["Left Arm"]
	Motor6D.Part1 = Model["Left Arm"].Grip2
	Motor6D.C1 =  Assets.Models.ODMG.Welds["Left Arm"].Grip2.CFrame:Inverse() * Assets.Models.ODMG["Left Arm"].CFrame
	Motor6D.Name = "Grip2"
	Motor6D.Parent = Player.Character["Left Arm"]

Anyone know why this happens? Any help will be greatly appreciated!

2 comments

0

First of all, don't name your variables with numbers, or name it exactly as the name of the instance.

0

It doesn't matter. The Motor6D is created and placed in the right spot