Hi, I'm developing a script to generate a random platform level, but the error cs0103 is displayed and I have no idea where is he from, here is the source code of my script randomLevelsGeneration.cs Code (CSharp): using System.Collections; using System.Collections.Generic; using System.Collections.Specialized; using UnityEngine; public class randomLevelsGenerator : MonoBehaviour { public int isPlaced = 0; public int forPlaced = 1; // Start is called before the first frame update void Start() { while (forPlaced <= 32) { GameObject cube = GameObject.CreatePrimitive(PrimitiveType.Cube); cube.transform.position = new Vector3(Random.Range(-24.0f, 24.0f), 0, Random.Range(-24.0f, 24.0f)); if (isPlaced == 0) { Player.transform.position = cube.transform.position; isPlaced = 1; } cube.transform.localScale = new Vector3(Random.Range(3.0f, 10.0f), 1, Random.Range(3.0f, 10.0f)); forPlaced++; } } } And thank you in advance!
When posting error messages, please include the actual message as well; nobody memorizes the error codes. I'm guessing this line is the culprit: Code (CSharp): Player.transform.position = cube.transform.position; Unless you have a script called "Player" with a static Transform reference, "Player" doesn't exist. This is a forum, not a group chat. You're not likely to get answers right away.