here the code i wrote but it keeps giving me this error
C#:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PlayerController : MonoBehaviour
{
public float moveSpeed;
public Rigidbody theRB;
// Start is called before the first frame update
void Start()
theRB = GetComponent<Rigidbody>();
}
// Update is called once per frame
void Update()
{
}
}