I’m having an issue where my pet entity is created and controlled by an interface script, but when I log out or crash, the interface script is stopped suddenly and cannot delete my pet entity. It looks like the scriptEnding callback is not called.
I’ve tried a few different approaches. My last one was to put an entity script on the pet that would self delete if a method wasn’t called in the last 10 seconds. This does not work when run with multiple avatars in the room since only my interface script was calling the method on the entity script.
Any ideas or solutions you guys are already using?