:Destroy() not working

image
Ive been scripting for a while, this is the first time i’ve seen anything like this. Is roblox just glitching out?

1 Like

No, it’s intended

:Destroy() parents the instance to nil, locks its parent and disconnects all events, but variables can still reference the destroyed part. Just write a line after the :Destroy() call to dereference it. like road = nil

1 Like