why won't the rotation work on my game?

Here’s the script i’m using

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

[RequireComponent(typeof(Rigidbody))]
public class RotateCharacter : MonoBehaviour
{
public float rotationSpeed = 180f; // Adjust this value for rotation speed

private Rigidbody rb;

private void Start()
{
rb = GetComponent();
}

private void Update()
{
float rotateInput = Input.GetAxis(“Rotate”);

// Rotation
Vector3 rotation = new Vector3(0f, rotateInput * rotationSpeed * Time.deltaTime, 0f);
Quaternion deltaRotation = Quaternion.Euler(rotation);
rb.MoveRotation(rb.rotation * deltaRotation);
}
}

I still can’t understand why it won’t work

I have a capsuel, with the camera, rigid body, a floor, and that script

Use Rotate function, it’s much easier to understand (example in point 4).

Start from the beginning below pathway. It’s all you need to know to start, and it has easy to understand form.

Edit: About your error, you propably don’t have in game preferences set “Rotate” so all you multiplicate equals 0.