so i wanted to make a dash and it worked i wanted to add particles and i added them but they dont work
this is the skript
#dash
on rightclick:
if player is holding diamond sword named "&b&lDASH":
cancel event
if {cd::dash::%player%} is set:
send "&cCooldown!" to player
stop
set {cd::dash::%player%} to true
push player forward at speed 2
play sound "entity.ender_dragon.flap" to player
play 50 of flame at player
wait 5 seconds
delete {cd::dash::%player%}
every 1 second:
loop all players:
if {cd::dash::%loop-player%} is set:
send action bar "&eDash cooldown..." to loop-player
this is the skript
#dash
on rightclick:
if player is holding diamond sword named "&b&lDASH":
cancel event
if {cd::dash::%player%} is set:
send "&cCooldown!" to player
stop
set {cd::dash::%player%} to true
push player forward at speed 2
play sound "entity.ender_dragon.flap" to player
play 50 of flame at player
wait 5 seconds
delete {cd::dash::%player%}
every 1 second:
loop all players:
if {cd::dash::%loop-player%} is set:
send action bar "&eDash cooldown..." to loop-player