Help with transform.position

Hello. I am new to Unity and C#. When I try to alter the position of a GameObject in the script by using something like transform.position = new Vector3(x, y, z);, I get a ton of errors.


Here is a screenshot of all the errors I get. Line 9 is where the position thing is happening, and I’m just trying to reposition a gameObject.

If your IDE isn’t providing autocomplete suggestions or not underlining errors in red then it needs to be configured.

When your IDE is functioning you can fix your problem, which is probably just that your code is not inside of a method, or you are missing a semi-colon or similar minor error, which should hopefully be clearly highlighted when your IDE is configured.

If that is the line you have in your script, then you have a trailing comma at the end of the line.