Assets\MouseLook.cs(25,47): error CS1002: ; expected

I don’t know how to fix this please help
here is my code

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class MouseLook : MonoBehaviour
{


    public float mouseSensitivity = 100f;

    public Transform playerBody;

    // Start is called before the first frame update
    void Start()
    {
       
    }

    // Update is called once per frame
    void Update()
    {
        float mouseX = Input.GetAxis("Mouse X") * mouseSensitivity * Time.deltaTime;
        float mouseY = Input.GetAxis("Mouse Y") * mouseSensitivity * Time.deltaTime;

        playerBody.Rotate(Vector3,up * mouseX)
    }
}

On line 25, you need to add a “;” like this:

playerBody.Rotate(Vector3,up * mouseX);

Edit: Your error tells you the line and where. “Assets\MouseLook.cs(25,47)” means on line 25, 47 characters over :slight_smile:

On the same line (25) you also have a comma where you should be using a period:
Vector3,upshould be Vector3.up

1 Like

yea found that out new to programming thank you tho