Code:
on right click with a sugar:
name of tool of player is "&cFlash!"
set {_waited} to difference between {speed.%player%.lastused} and now
if {_waited} is less than 30 seconds:
message "&6&lKitPvP &8» &7You have to wait&6 %difference between 30 seconds and {_waited}% &7until you can use your ability again!"
stop
apply potion of speed of tier 5 to player for 10 seconds
on player dead
set {_waited} to 0
stop
set {speed.%player%.lastused} to now
How can I make it clear the cooldown on death, and when the cooldown expire it will tell him