Please tell us about the bug you want to report:
Actually working on a prototype "button" that when clicked it will either teleport a player to point A or point B.
I have setup what is needed for it in unity but once clicked ingame it crashes the whole game.
Please tell us how it happened:
Simply clicking the cube/button crashes 100% of the time
Please tell us everything that could help us reproduce the issue:
Here are screenshots of the project settings:
Settings for the button:

Settings for the VarResult buffer:

CubeButtonTeamSplitter gamobject is the cube to be used as a button,
TeamA and TeampB are empty objects placed at two different positions to be used for teleporting,
VarChoice is an empty gameobject that only has the CVR variable buffer script with default value 0.
Game Version: (this is visible in the home view of the game UI)
2021r163p1
Report Code (this can be generated in the game settings under Support -> Report a bug)
E358 FC44 E36E