Camera not rotating in y axis with this script

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

public class CamerLook : MonoBehaviour
{
    public FixedJoystick RightJoystick;
    public float CameraAngle;
    public float CameraAngleSpeed = 1f;

    void Update()
    {
        CameraAngle += RightJoystick.input.x * CameraAngleSpeed;

        Camera.main.transform.position = transform.position + Quaternion.AngleAxis(CameraAngle, Vector3.up) * new Vector3(0, 3, 4);
        Camera.main.transform.rotation = Quaternion.LookRotation(transform.position + Vector3.up * 2f - Camera.main.transform.position, Vector3.up);
    }
}

Please help

What’s a FixedJoystick? Is that a script you wrote?

No, I didnt write it, it is from the Joystick Pack Joystick Pack | Input Management | Unity Asset Store

Ca

Can you help me please?

Ok so u cant help me, right? Are u also begginer or no?

People don’t camp on the forums 24/7. Look at PraetorBlue’s post count & register dates, they are very much not a beginner.

Anyway, first you need to find out if the problem is that you’re getting bad data, or if you’re using that data incorrectly. Try using Debug.Log on the value of RightJoystick.input.x, and for good measure the value of CameraAngleSpeed too. If those values are what you expect, then you know the problem happens after that.

Ok thanks for the info