I’ve been working on a project that uses some old Roblox maps such as crossroads, and with old maps comes piles and piles of Weld/Snap objects. What would be a fast and painless way to remove all the welds?
12 Likes
One thing you can do is use a script to check every single instance in workspace and see if it’s a weld. If it’s a weld, delete it. Here’s a quick script you can paste into the command line:
local target=workspace
local objectType="Weld"
local objects=target:GetDescendants()
local progress=0
local goal=#objects
coroutine.wrap(function()
while progress<goal do
wait(0.2)
print(string.sub(tostring(progress/goal*100),1,4).."% complete")
end
end)()
for index,object in pairs(objects) do
if object and object:IsA(objectType) then
object:Destroy()
end
if math.fmod(index,100)==0 then progress=index wait() end
end
progress=goal
- Change “target” to whatever place you want to scan.
- Change “objectType” to whatever object you want to delete.
57 Likes
You can use the weld plugin it comes with unweld all
2 Likes