for _, child in pairs(script.Parent:GetChildren()) do while wait(0.1) do child.Opacity = child.Opacity -1 if child.Opacity == 0 then script.Parent:Destroy() end end end
what's wrong with this script? It gives me an error, it also says: try contacting an administrator if the problem persists
maybe add an if child:isA("Part") in there and see if it works
Mmh right ima try thanks
did it work?!?!
Yeah nothing changed
ill let you know when i have a fix!
try this out
local parent = script.Parent local children = parent:GetChildren()
while #children > 0 do wait(0.1) for i = #children, 1, -1 do local c = children[i] if type(c.Opacity) == "number" then c.Opacity = math.max(0, c.Opacity - 1) if c.Opacity == 0 then c:Destroy() table.remove(children, i) end else table.remove(children, i) end end end
print("working :D") parent:Destroy()