Script Error

I cant figure out what i did wrong. Anyone have a clue to help out?

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

public class CamraController : MonoBehaviour
{
   
   [SerializeField] private float mouseSensitivity;

    private Transform parent;

    private void Start()
    {
        parent = transform.parent;
    }

    private void Update()
    {
        Rotate();
    }

    private void Rotate()
    {
        float mouseX = Input.GetAxis("Mouse X") * mouseSensitivity * Time.deltaTime;
   

        parent.Rotate(Vector3.up mouseX);
    }
 
}

Did you miss a multiplication on line 27?

In future, please copy/paste the full error code. It makes finding the problem much faster :slight_smile:

Those errors should (mostly) tell you the problem and line number. It’ll make your future work a lot easier to try to learn to decipher them, or look up their meaning.

Please don’t post twice. I told you how to fix your fat-finger typo errors here:

https://discussions.unity.com/t/858933/3

It seems you have completely ignored that response and pressed ahead. What’s going on here?

1 Like

read the rules before posting again. Closed for low effort posting.