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?