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 6 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 — 6y

1 answer

Log in to vote
0
Answered by 6 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.

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

Answer this question