Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do i remove Weld from any parents?

2 answers

✓ Accepted answer

We could make a script that removes every Weld in your game, but it may also delete Welds that you do not want deleted.

local Parts = Workspace:GetDescendants() -- We are getting all of the parts in Workspace
for i = 1, #Parts do 
	if Parts[i]:IsA("Weld") then -- If the part is a Weld then
	Parts[i]:Destroy() -- Destory that part
	end
end

2 comments

0

^^^ You can also filter it out by changing the welds you don't want to be deleted with certain names, so you would write if Parts[i]:IsA("Weld") and Parts[i].Name ~= "Name of non removable weld here"

0

Thank you.

#Answer Though Welds may be annoying, it is either a backdoor script with a "Instance.new" function or it is what I think it is: When making a change to a part, ROBLOX automatically adds a Weld to the part. This doesn't affect your game at the least though, so you should be fine. #What are Welds? Welds are added to change to part to your liking or they are added automatically when you add a Child to the part. They do not affect your game at the least unless you are using them to change the part, so I believe you should be fine. Just close the Children tab of the part if you don't want to be annoyed.

This discussion is preserved as it was. New answers, comments, and votes are closed.