Weld constraint makes player fly

Hello, I would like it so when a player touches a part, the part welds onto the player.
The weld is working, however it just makes the player fly.

local speed = 200
local db = false
script.Parent.Touched:Connect(function(hit)
	if hit.Parent:FindFirstChildWhichIsA("Humanoid") then
		local rl = hit.Parent:FindFirstChild("Right Leg")
		if script.Parent:FindFirstChild(hit.Name) then return end
		local weld = Instance.new("WeldConstraint")
		weld.Name = hit.Parent.Name
		weld.Parent = script.Parent
		weld.Part0 = rl
		weld.Part1 = script.Parent
	end
end)

Here’s the script ^^^ how do I stop this from happening?

It makes the player fly because the part is tilted. It acts as the player’s floor at this point.

Even if you would keep it at a 90 degree angle, I think the player will only be able to walk backwards. It’s Roblox physics and I may be wrong so just correct me. I’m just predicting what might happen.

Script seems to work fine with a ball, I believe you are correct :slight_smile:

1 Like

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