hi please help
I’m new to unity
i need to control my player from top down view
left stick controls only
need the player to rotate to the position of the left stick is pointing & move forward

here my script but doesn’t really work , I’m missing something
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class NewPlayerMove : MonoBehaviour {
public float speed;
private Vector3 moveDirection = Vector3.zero;
private Rigidbody2D controller;
void Start()
{
// Store reference to attached component
controller = GetComponent ();
}
void Update()
{
moveDirection = new Vector3(Input.GetAxis(“LR”), Input.GetAxis(“UD”), 0f);
moveDirection = transform.TransformDirection(moveDirection);
moveDirection *= speed;
transform.rotation = Quaternion.Euler(0f, 0f, Input.GetAxis(“LR”));
}
void FixedUpdate ()
{
controller.AddForce(moveDirection);
}
}