Invincible Zombie Script Won't Die!

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:
Screenshot 2025-04-18 175142

I mean, it’s still outputting errors that one of the modules that is a child of the script doesn’t exist.

Add a return when the script destroys, I believe this will fix your issue

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.