Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do i remove Weld from any parents? [closed]

Asked by 4 years ago
Edited 4 years ago

Please help me because weld spams into my game in different parents

0
This isn't a request site, please read the guidelines DeceptiveCaster 3761 — 4y

Closed as Non-Descriptive by Sensei_Developer, killerbrenden, moo1210, and User#5423

This question has been closed because its title or content does not adequately describe the problem you are trying to solve.
Please ensure that your question pertains to your actual problem, rather than your attempted solution. That is, you were trying to solve problem X, and you thought solution Y would work, but instead of asking about X when you ran into trouble, you asked about Y.

Why was this question closed?

2 answers

Log in to vote
0
Answered by 4 years ago

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
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" Sensei_Developer 298 — 4y
0
Thank you. JoyfulPhoenix 139 — 4y
Ad
Log in to vote
0
Answered by
Slatryte 104
4 years ago
Edited 4 years ago

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.