Dash script help

I want to make a dash like in this video

Can u help me? Tyy

I tried making one, but failed.