Not sure why my script doesn't work

  • 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!

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

Fyriiee

Member
Sep 30, 2020
26
0
1
17
Code:
on right click:
    if player's tool is snowball:
        if {cooldownsb.%player's uuid%} is false:
            set {cooldownsb.%player's uuid%} to true
            wait 1 seconds
            give player 1 snowball
            set {cooldownsb.%player's uuid%} to false

Above is my code for my server, which is supposed to give a snowball every time I throw it after 1 second. I have no skript plugins and I'm not sure why the script isn't working. I simply do not receive a snowball. Any help is appreciated :emoji_smiley:
 
Code:
on right click holding Snowball:
    if player's tool is snowball:
        set {_waited} to difference between {snow.%player%.lastused} and now
        if {_waited} is less than 1 seconds:
            cancel event
            message "&eYou have to wait &a%difference between 1 seconds and {_waited}%"
            stop
        else:
            set {snow.%player%.lastused} to now
            wait 1 second
            give player snowball


this should work stack of 1 snowball only tho hope this helped :emoji_grinning:
 
  • Like
Reactions: Fyriiee
Status
Not open for further replies.