Trying to get my charcter to move but the script wont work. Heres my script.

using UnityEngine;
using System.Collections;
public class move : MonoBehaviour
{
public float movespeed;
// Update is called once per frame
void Update()
{
if (Input.GetKey(KeyCode.LeftArrow))
{
transform.Translate(new Vector3(-movespeed, 0, 0) * Time.deltaTime);
}
if (Input.GetKey(KeyCode.RightArrow))
{
transform.Translate(new Vector3(movespeed, 0, 0) * Time.deltaTime);
}
if (Input.GetKey(KeyCode.UpArrow))
{
transform.Translate(new Vector3(0, movespeed, 0) * Time.deltaTime);
}
if (Input.GetKey(KeyCode.DownArrow))
{
transform.Translate(new Vector3(0, -movespeed, 0) * Time.deltaTime);
}
}
}

Can you use code tags please. Also, what is the exact problem- e.g. compiler error/ character not moving/ character moving too fast/ moving in wrong direction?

public float movespeed;

you don’t initialize this variable anywhere, so any try to move the object with this variable ends in no movement at all. Do you change this variable in Inspector in runtime?