It’s almost easter and this script thinks its Halloween! Script is running even though it destroys its parent, destroys itself, and disables itself. Do I need to set its health to 0 too? I prefer errors not to appear regardless of whether they affect gameplay or not.
It’s a script under a ScreenGUI
which is supposed to self-destruct by destroying the ScreenGUI if the player’s character ~= nil. Thing is, it does destroy its parent, and everything else in the ScreenGUI, except the script.
Here is the simple self-destruct logic:
if player.Character then
script.Parent:Destroy()
script.Disabled = true
script:Destroy()
print("hi")
end
Here’s the output:
I mean, it’s still outputting errors that one of the modules that is a child of the script doesn’t exist.