# I need help with a non sensical issue

**URL:** <https://ask.vrchat.com/t/i-need-help-with-a-non-sensical-issue/22800>\
**Category:** Help!\
**Created:** [February 9, 2024, 3:12am UTC](https://ask.vrchat.com/t/i-need-help-with-a-non-sensical-issue/22800 "2024-02-09T03:12:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![WildNapkins](https://yyz1.discourse-cdn.com/vrchat/user_avatar/ask.vrchat.com/wildnapkins/32/22889_2.png) [@WildNapkins](https://ask.vrchat.com/u/WildNapkins)\
**Post date:** [February 9, 2024, 3:12am UTC](https://ask.vrchat.com/t/i-need-help-with-a-non-sensical-issue/22800/1 "2024-02-09T03:12:48Z")

</div>

.data\_start

```
.export newVariable

__instance_0: %VRCSDKBaseVRCPlayerApi, null
__teleportPos_0: %UnityEngineVector3, null
__teleportRot_0: %UnityEngineQuaternion, null
onPlayerTriggerEnterPlayer: %VRCSDKBaseVRCPlayerApi, null
__instance_1: %UnityEngineTransform, this
__instance_2: %UnityEngineTransform, this
newVariable: %UnityEngineTransform, this

```

.data\_end

.code\_start

```
.export _onPlayerTriggerEnter

_onPlayerTriggerEnter:

    PUSH, onPlayerTriggerEnterPlayer
    PUSH, __instance_0
    COPY
    PUSH, newVariable
    PUSH, __instance_1
    COPY
    PUSH, __instance_1
    PUSH, __teleportPos_0
    EXTERN, "UnityEngineTransform. __get_position__ UnityEngineVector3"
    PUSH, newVariable
    PUSH, __instance_2
    COPY
    PUSH, __instance_2
    PUSH, __teleportRot_0
    EXTERN, "UnityEngineTransform. __get_rotation__ UnityEngineQuaternion"
    PUSH, __instance_0
    PUSH, __teleportPos_0
    PUSH, __teleportRot_0
    EXTERN, "VRCSDKBaseVRCPlayerApi. __TeleportTo__ UnityEngineVector3_UnityEngineQuaternion__SystemVoid"
    JUMP, 0xFFFFFFFC

```

.code\_end

this is my code…

Destroying GameObjects immediately is not permitted during physics trigger/contact, animation event callbacks, rendering callbacks or OnValidate. You must use Destroy instead.  
UnityEngine.Object:DestroyImmediate (UnityEngine.Object)  
VRC.Udon.Security.UnityEngineObjectSecurityBlacklist:IdentifyDontDestroyOnLoadHandle ()  
VRC.Udon.Security.UnityEngineObjectSecurityBlacklist:IsBlacklistedGameObject (UnityEngine.GameObject)  
VRC.Udon.Security.UnityEngineObjectSecurityBlacklist:FilterBlacklisted\<UnityEngine.Transform\> (UnityEngine.Transform&)  
VRC.Udon.Wrapper.Modules.ExternUnityEngineTransform:\_\_get\_position\_\_UnityEngineVector3 (VRC.Udon.Common.Interfaces.IUdonHeap,System.Span`1<uint>) VRC.Udon.VM.UdonVM:Interpret () VRC.Udon.UdonBehaviour:RunProgram (uint) (at ./Packages/com.vrchat.worlds/Runtime/Udon/UdonBehaviour.cs:1029) VRC.Udon.UdonBehaviour:RunEvent<UnityEngine.Collider> (string,System.ValueTuple`2\<string, UnityEngine.Collider\>) (at ./Packages/com.vrchat.worlds/Runtime/Udon/UdonBehaviour.cs:1273)  
VRC.Udon.UdonBehaviour:OnTriggerEnter (UnityEngine.Collider) (at ./Packages/com.vrchat.worlds/Runtime/Udon/UdonBehaviour.cs:820)

this is the error im encountering when i enter in playmode to test the behavior and it crashes the play mode as soon as i trigger the collider

---

<div class="post-metadata">

**Author:** ![WildNapkins](https://yyz1.discourse-cdn.com/vrchat/user_avatar/ask.vrchat.com/wildnapkins/32/22889_2.png) [@WildNapkins](https://ask.vrchat.com/u/WildNapkins)\
**Post date:** [February 9, 2024, 3:15am UTC](https://ask.vrchat.com/t/i-need-help-with-a-non-sensical-issue/22800/2 "2024-02-09T03:15:04Z")

</div>

obviously the issue is clear im just an idiot and dont know where or what to do to resolve the complaint it has about using destroy

---

<div class="post-metadata">

**Author:** ![tupper](https://yyz1.discourse-cdn.com/vrchat/user_avatar/ask.vrchat.com/tupper/32/47486_2.png) [@tupper](https://ask.vrchat.com/u/tupper)\
**Post date:** [February 12, 2024, 11:25pm UTC](https://ask.vrchat.com/t/i-need-help-with-a-non-sensical-issue/22800/4 "2024-02-12T23:25:20Z")

</div>

It might be helpful if you posted the UdonSharp or a screenshot of the Udon nodes, instead!

The code you’ve posted is Udon assembly. It doesn’t show you calling any odd functions.
