1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Solved I Want to make a gun cooldown please help

Discussion in 'Skript' started by Orid, Jun 19, 2020.

Tags:
Thread Status:
Not open for further replies.
  1. Orid

    Orid Member

    Joined:
    Jun 18, 2020
    Messages:
    1
    Likes Received:
    0
    Okay so I'm making this gun server I have a pistol this is the script:
    on right click holding a wooden hoe:
    shoot arrow at speed 2

    But the problem is that it shoots WAY too fast than I want it to, so basically I have to make a cool down and I have no idea how to do that. I tried making a var but I have no idea how to make the var actually do something I've looked everywhere I'm very new to skript so I am kind of stuck can someone please help.
     
  2. Best Answer:
    Post #2 by Nikd0, Jun 19, 2020
  3. Nikd0

    Nikd0 Active Member

    Joined:
    May 30, 2020
    Messages:
    208
    Likes Received:
    21
    Code (Text):
    1. on your event:
    2.     if {cooldown::%player%} is set:
    3.         send "You have to wait!" #optional, not needed
    4.         stop
    5.     #do your stuff
    6.     set {cooldown::%player%} to true
    7.     wait X seconds #your cooldown
    8.     clear {cooldown::%player%}
    I think this is the easiest way to do this.
     
    Orid likes this.
Thread Status:
Not open for further replies.

Share This Page

Loading...