It says variable not set before reading it even though it should have been set at the creation of the instance

In a game that I am working on I made a very simple door that is set up so that I can edit the variables of specific instances of it so they will lead to different locations. When I select an instance I am pretty sure that I can set the variables at the creation of the instance. When I go through the door it says that that one of the variables was not set before reading it. It would be great to get some help on how to make this work, or if there is a different way to do this. Below are the code for the door, the variables that are supposed to be set, and the error message:
Screenshot 2021-02-08 093220.pngScreenshot 2021-02-08 093303.pngScreenshot 2021-02-08 093317.pngScreenshot 2021-02-08 093339.png
 

renex

Member
1612799836751.png
1612799871201.png
you're trying to read variables in the player within that <with> block. you can fix thast by moving those two lines out of the block.
 
Top