How do I make player dash in direction of mouse (top down)

How do I…

How do I make a script so that the player dashes in the direction of the mouse? I don’t know the exact code for it so I need some help with this

FOR EXAMPLE

Condition
Space key is pressed
Trigger once

Add PERMANET force to player toward position CursorX() CursorY()
Wait 0.5 sec
Stop player (Remove all forces)