- Home /
Player not moving but no errors appear,Player won't move, no errors.
My (Unity) player is in a kneeling position and crying, she will not move. There are no errors present in the Black Rocket Layout.,HI, so I am in a class, and I'm creating a 3d video game. Now, when I press play, my character looks like it's crying. No errors are appearing, but I'm quite frankly tired of trying to figure this out. Thanks!
Warning 1: Unable to open Assets/3DVG/$$anonymous$$aterials/Other (Do Not Edit)/Background Scripts/Player$$anonymous$$ove.cs: Check external application preferences.
Warning 2: No 'floorChecks' assigned to Player$$anonymous$$ove script, so a single floorcheck has been created UnityEngine.Debug:LogWarning(Object, Object) Player$$anonymous$$ove:Awake() (at Assets/3DVG/$$anonymous$$aterials/Other (Do Not Edit)/Background Scripts/Player$$anonymous$$ove.cs:68)
Error: NullReferenceException: Object reference not set to an instance of an object Player$$anonymous$$ove.Awake () (at Assets/3DVG/$$anonymous$$aterials/Other (Do Not Edit)/Background Scripts/Player$$anonymous$$ove.cs:77)
You have a null reference on script Player$$anonymous$$ove.cs at line 77.
@Cynikal What change should I make to (Line 77): mainCam = GameObject.FindGameObjectWithTag("$$anonymous$$ainCamera").transform;
Answer by Cynikal · Jul 26, 2018 at 05:09 PM
Based off of your comment, it's nulling out that it can't find the game object with the tag "MainCamera".. So, you can try replacing that line, with: Camera.main.transform.
I've got the same problem on this line. startText.text = "Time left: " + (timeLeft).ToString("0"); However I added the line (below) and it got rid of the error but it stopped the player from moving startText = GameObject.FindGameObjectWithTag("Text").GetComponent();
Your answer
![](https://koobas.hobune.stream/wayback/20220612171612im_/https://answers.unity.com/themes/thub/images/avi.jpg)