isValid doesn't apply to particles
🌙 Lua•Updated 2 days ago•0 views
Particles aren't entities - they're either null or not, so isValid returns false even when the object exists; guard with `if particle then` instead of isValid, …
Is the isValid function bugged on particles
Particles aren't entities - they're either null or not, so isValid returns false even when the object exists; guard with `if particle then` instead of isValid, and :destroy() errors on already-destroyed particles.