Jump to content

Simple Dash Script


Recommended Posts

Here is a simple dash script i made out of boredom, and because normal PvP sucks

Note: You dash when you rightclick with a sword or leftclick with a bow

Additional Note: You can change the cooldown between dashes and the speed of the dashes in the options section

    Cooldown: 3 seconds
    Speed: 2
on rightclick with a sword:

on leftclick with a bow:
function Dash(p: player):
    set {_u} to {_p}'s uuid
    if {dash.last::%{_u}%} is set:
        set {_wait} to difference between {dash.last::%{_u}%} and now
        set {_wait} to {@Cooldown}
    if {_wait} >= {@Cooldown}:
        set {dash.last::%{_u}%} to now
        if {_p} is on ground:
            push {_p} forwards at speed {@Speed}
            push {_p} forwards at speed {@Speed} / 2
        send action bar "&cCD: %difference between {_wait} and {@Cooldown}% left" to {_p}
Edited by OMan100
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...