Directional dash

I’m making a platformer that uses a celest-like movement kit, and I’m a little stuck on the dash. I watched some tutorials, but I can’t make anything work. My plan is to make the player dash in the direction you’re facing: up, down, left, right, and the 4 diagonal directions too. If anyone can send some code my way, I would greatly appreciate it. Thank you!