If you just want a character that moves, nothing too special, try using this:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Movement : MonoBehaviour
{
public float speedX;
public float speedZ;
public float speedXMIN;
public float speedZMIN;
// Update is called once per frame
void Update()
{
if (Input.GetKey("w"))
{
transform.Translate(speedX, 0, 0);
}
if (Input.GetKey("s"))
{
transform.Translate(speedXMIN, 0, 0);
}
if (Input.GetKey("d"))
{
transform.Translate(0, 0, speedZMIN);
}
if (Input.GetKey("a"))
{
transform.Translate(0, 0, speedZ);
}
}
}
NOTE: for MIN vars use negative values from the non-MIN vars. ex: if speedX is 0.5 then speedXMIN is -0.5. Attach the script to the object you want to move. Change the speed from the inspector (select object > scroll to code property > change vars to a number).