Item 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 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.

Ayameru

Member
Apr 30, 2021
1
0
1
Are there any way to have the codes for a cooldown on skripted weapons? Would love some help ^^
 
Code:
on right click:
    if name of player's held item is "&6Launcher":
        if {cooldown.%player%} is true:
            message "&6you have to wait"
            stop
            cancel event
        if {cooldown.%player%} isn't set:
            set {cooldown.%player%} to false
        if {cooldown.%player%} is false:
            set {cooldown.%player%} to true
            push the player upwards
            message "&byou have been launched"
            wait 3 seconds
            set {cooldown.%player%} to false
Credit to
Stef Classens
 
Status
Not open for further replies.