umm for some reason the cursor isnt locked idk how to fix that it should be locked
did you type
Cursor.lockState = CursorLockMode.Locked;
yup