How do you break a weld?

Welding is fun, but there is an issue I’m having currently. Whenever I weld a part to my character, then destroy it while anchoring the part it still acts as if the part is still welded to the character. Why is this?

1 Like

I assume you’re trying to destroy the weld with a local script. If so try doing it on the server side (if the instance and the weld isn’t created on the client).

Changes made on the client often don’t replicate to the server, such as destroying instances. but stuff like applying velocity on the localPlayer or setting the localplayer’s health to 0 do replicate to the server for some reason.

Actually I’m using a server side script. What I’m trying to do is create a weld when a player clicks, attach it to the rootPart, then remove it after 2 seconds. Apparently when I remove the weld, then anchor the part it still causes a weld issue.

i just recreated the exact same what you mentioned and don’t seem to have any issues with anything.

-- it does let go
workspace.Part.ClickDetector.MouseClick:Connect(function(p)
	local weld = Instance.new("Weld")
	weld.Parent = workspace.Part
	weld.Part0 = workspace.Part
	weld.Part1 = p.Character.HumanoidRootPart
	
	wait(2)
	workspace.Part.Anchored = true
	weld:Destroy()
	
end)

care to post your code?

2 Likes

this is where it messes up.

wait(.5)
if rPClone then rPClone.Anchored = true weld.Part0 = rP end
if char then
	invisiChar(char,"Off")
	char.Humanoid.WalkSpeed = 16
end

and yes I did try destroying it so i tried alternatives aka the weld.Part0 = rp

you’re just reapplying the weld back to the root part as it seems. could you include the whole code starting at the event (function) ending at the end of it. if doing weld:Destroy() doesn’t help instead of weld.Part0 = rp the full stack would be helpful in order to help further.

I fixed the issue, basically to people out there who are tryin this, don’t clone the humanoidrootpart and place it in character before renaming the humanoidrootpart’s clone to something other than HumanoidRootPart.

Thanks for the help voided I appreciate it!