Weld issue? Player slopes down after use

https://gyazo.com/1934ba07c0242faa422da15bee66d284

So I’ve made a simple tool, that is animated to spit a drill bit. And when I activate the tool, it will weld a dummy humanoid’s rootpart to the drill part. And it simulates him spinning.

It works, but for some reason after a few moments my whole character slants down as if the weight is pulling him down. I made the dummy humanoid’s parts all massless. Any idea what’s causing this? If I remove the welds, this stops happening.

Tool script:

script.Parent.Activated:Connect(function()
	local dude = workspace:WaitForChild("Dummy")
	dude.HumanoidRootPart.Position = script.Parent.Drill.Position
	local newWeld = Instance.new("Weld")
	newWeld.Parent = script.Parent.Drill
	newWeld.Part0 = script.Parent.Drill
	newWeld.Part1 = dude.HumanoidRootPart
end)
1 Like

When you create a weld between two parts, it affects the physics of the connected parts.

script.Parent.Activated:Connect(function()
	local dude = workspace:WaitForChild("Dummy")
	dude.HumanoidRootPart.Anchored = true
	
	script.Parent.Drill.Position = dude.HumanoidRootPart.Position
	local newWeld = Instance.new("Weld")
	newWeld.Parent = script.Parent.Drill
	newWeld.Part0 = script.Parent.Drill
	newWeld.Part1 = dude.HumanoidRootPart
	newWeld.C0 = CFrame.new(0, 0, 0) -- Adjust the offset of the weld connection point on the drill
	newWeld.C1 = CFrame.new(0, 0, 0) -- Adjust the offset of the weld connection point on the humanoid
end)

1 Like