right click cooldown

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

i7soneee

Member
Dec 11, 2022
1
0
1
i can't figure out how to add a cooldown to a right click item...

Code:
on right click on player:
    if name of tool of player is "&aKhbag Rage &7(Right Click)":
        push clicked player upwards at speed 1.6
        wait 35 ticks
        push clicked player downwards at speed 1.05
 
Hi. Apologies for responding to an old thread, although I think this may help other people in a similar situation.
Code:
difference between {cooldown::%player's uuid%} and now isn't less than 3 seconds
set {cooldown::%player's uuid%} to now
 
Status
Not open for further replies.