Tool not welding correctly?

Sorry if i am using the wrong category.

So basically i followed one tutorial on how to animate tools like guns
This one.

And well. When i try it in game its like this.

Now this is the script that welds them togheter.

-- // Services & Variables

local players = game:GetService("Players")

local toolReqWeld = {
	"AK-47"
}

-- // Event listeners

players.PlayerAdded:Connect(function(player)			
	player.CharacterAdded:Connect(function(character)		
		local weld = Instance.new("Motor6D", character["Right Arm"])
		weld.Name = "ToolGrip"
		weld.Part0 = character["Right Arm"]

		character.ChildAdded:Connect(function(child)
			if child:IsA("Tool") then
				for _, v in ipairs(toolReqWeld) do
					if v == child.Name then
						weld.Part1 = child.BodyAttach
					end
				end
			end
		end)
	end)
end)

And thats pretty much it…
Would love any help!

2 Likes

Oh well nevermind all you have to do
Is edit the C1 of the Motor6D
Worked for me atleast.

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