How to move towards where the mouse points

I’m guessing you are probably missing the direction from mouse? Also, mouse is a 2D point on screen. If you want a point in your game world (even if you are topdown), you need to project that point onto something. Typically you cast a ray into the scene and take the first hit point and tells the player to move there.