I need help with properties (SOLVED)

I want to use go.get() to see a variable from another script however every time i tried an error came up saying the property doesn’t exist i know this is not true as the property appears in the property tab and i have not made a referencing error as the id of my object appears as an error , i have tested go.get on a property in the same script and it still does not work attached as an image is the error i got and the code i wrote.
Screenshot 2023-10-12 at 18.12.41
Screenshot 2023-10-12 at 18.15.06
Screenshot 2023-10-12 at 18.10.59
i have tried writing the string with caps and as a hash and nothing seems to work when i look online for help they have done the same thing as me to reference the property

You’re almost there! The issue is in using “.” instead of “#”.

Check the manual on addressing, specifically the section on shorthands:

“.” refers to the current game object. “#” refers to the current component (the script). It is the script that has the property, not the game object.

7 Likes

thank you so much it works now

1 Like