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

Why doesn't this effect destroying script work?

Asked by 4 years ago

For some reason, every time i try to destroy something inside this Effects folder with a script it doesn't work, but when i use the command bar it does work.

game.Workspace.Effects.ChildAdded:Connect(function(child)
    coroutine.resume(coroutine.create(function()
        wait(7.5)
        child:Destroy()
        if child ~= nil then print("Destroyed") end
    end))
end)
0
Nevermind, it only destroyed them on the server for some reason. TinyHooman 2 — 4y
1
the coroutines are useless here RAFA1608 543 — 4y

Answer this question