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

How to make script that deletes a thing whenever the thing is inserted into the workspace?

Asked by 7 years ago

I want to delete this thing PartZ whenever it is inserted into the workspace. It is for anti music exploit.

0
Just use FE to stop the music from replicating. User#5423 17 — 7y

1 answer

Log in to vote
0
Answered by 7 years ago

Eather, like DynoSeo said, use FE, it will help you loads. If you don't want to just do a child added function.

1workspace.ChildAdded:connect(function(Child)
2    if Child.Name == "PartZ" then
3        Child:remove()
4    end
5end)
0
Thanks! Do you know how to make script that removes mesh/fire on players torso whenever it is added? User#15070 0 — 7y
Ad

Answer this question