Attaching an item with experience enabled script as temporary attachment to either HUD or BODY part does not automatically detach when switching regions. The item remains in temporary attachments, without any attirbutes (on right click -edit), and after some times/teleports, it's object name changes to a UUID.
The only way to remove this "ghosted" item is to double click on it in temporary attachments. But this doesn't always happens. Sometimes the only solution is relog.
Furthermore in reality llDetachFromAvatar() is pointless, because the moment i switch region the item remains ghosted and broken, and no code is being executed.
What i noticed is this:
on region change the event experience_permissions_denied is triggered. The event changed is not triggered at all.
Whatever code exists in experience_permissions_denied is executed (ex: llSetTexture) but llRequestPermission won't trigger event run_time_permissions. Neither combining llRequestPermission with llDetachFromAvatar()
I alsop noticed that the name of the attachment changes from "testObject" to UUID only when another attachment is added to the same spot.
Thank you ,
Dee