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)

2 comments

0

Nevermind, it only destroyed them on the server for some reason.

1

the coroutines are useless here