How to dash forward to player closest to mouse

How would I make a script where if a player was to press a button, they would dash forward for a couple of seconds, but if the player mouse is near a player then they dash to that player. I dont mean like a quick move, i mean like a smooth medium speed dash forward

Use :WorldToViewportPoint To get the relative screen position of each player’s character, and then from there compare each point’s distance to the cursor