Script to disable an item with a certain name

none of these scripts actually work

No, I’m sure I know what I wrote.

You have a plugin inserting scripts into your game. All of the scripts above don’t stop sophisticated viruses. Double check your plugins. You could also be adding free models with viruses.

Ok, I fixed them for you so they work now :ok_hand:

no, if i remove the thing called ‘systemweld’ it will work but there are literally hundreds of them

Show us what your explorer looks like, we haven’t got enough information.

If there are hundreds of them inside studio while not in play test something put them there. You can use madpoint83’s server defender if you’d like. Works well for me.

Edit:

thanks to everyone who tried to help. i had one of the game devs clear the game of SystemWelds.

the script is:

for i, v in pairs(workspace:GetDescendants()) do
  if v.Name == "SystemWeld" then
  v:Destroy()
  end
end

Oh I thought you meant to disable it :slightly_smiling_face:
image