Rightclick 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 comminuty!

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

KAVKAZIE

Active Member
Feb 27, 2017
146
0
16
Hello, How can i make rightclick items to be with cooldown of 2 seconds. (The items do stuff btw) (Practice Server)
 
code_language.skript:
on rightclick:
  player's tool is ....
  {cooldown::%player%} is true:
    cancel event
    send "Whoops! Cooldown" to player
    stop
  #Effects
  wait 2 seconds
  clear {cooldown::%player%}
or maybe
code_language.skript:
on rightclick:
  player's tool is ....
  difference between {cooldown::%player%} and now is less than 2:
    cancel event
    send "Whoops! Cooldown" to player
    stop
  #Effects
  set {cooldown::%player%} to now
 
  • Like
Reactions: BadName