Can someone tell me why my code wont work i'm making movement for first person and it say's this

Assets\PlayerController.cs(25,41): error CS1061: ‘Transform’ does not contain a definition for ‘foward’ and no accessible extension method ‘foward’ accepting a first argument of type ‘Transform’ could be found (are you missing a using directive or an assembly reference?)

and here’s my code

using System.Collections.Generic;
using UnityEngine;

[RequireComponent(typeof(PlayerMotor))]
public class PlayerController : MonoBehaviour
{
[SerializeField]
private float speed = 5f;

private PlayerMotor motor;

void start ()
{ 
motor = GetComponent<PlayerMotor>() ;
}

void Update ()
{
    //calculate movement velocity as a 3D vector
    float xMov = Input.GetAxisRaw("Horizontal");
    float zMov = Input.GetAxisRaw("Vertical");

    Vector3 movHorizontal = transform.right * xMov; 
    Vector3 movVertical = transform.foward * zMov;

    //Final movement vector
    Vector3 velocity = (movHorizontal + movVertical).normalized * speed;

    //apply movement
    motor.Move(velocity);
}

}

Hi smartdudej

I think (without testing it) that the issue is that you have spelled forward without an R

I should also point out that your need a capital s for Start().

If that doesn’t fix it, post a reply and I will take a deeper look