#I want to add a cooldown to add a 2 minute and 30 second cooldown to each button/block in a GUI.

1 messages · Page 1 of 1 (latest)

vapid delta
sour cipher
#
  clicked slot = 0
  set {cooldown::%player%} to 150 seconds ago if {cooldown::%player%} isn't set
  if difference between now and {cooldown::%player%} < 150 seconds:
    stop
    cancel event
  set {cooldown::%player%} to now
  # execute code```
earnest bluff
#

it does not really seem to work for me

#

it says it cant understand this section: on inventory click

vapid delta
earnest bluff
#

i just changed the position on the line and it worked

#

but im gonna check if there are any more errors

#

this is the sk info

earnest bluff
#

So i read your tutorial on skripthub eult and i came up with this. I am really new with script so i just wanted to ask what is wrong, because there are some errors.

earnest bluff
#

ohhhh

#

i cant really find something that sets the cooldown

vapid delta
#

scroll to the event cooldown

earnest bluff
#

damn my fault

vapid delta
# earnest bluff damn my fault
on event:
    set {_waited} to difference between {cooldown::%player's uuid%} and now
    if {_waited} is less than 10 seconds:
        send "Try again in %difference between 10 seconds and {_waited}%"
        stop
    else:
        set {cooldown::%player's uuid%} to now
        #do event here
earnest bluff
#

so do event here is that the commands?

vapid delta
#

for the command cooldown scroll up in the tutorial

earnest bluff
#

ok

earnest bluff
#

Now most of the errors have been removed but there is one left. I dont know what it means. Could you help me?

vapid delta
#

why the :

earnest bluff
#

on?

vapid delta
#

send action bar

earnest bluff
#

omg i am as stupid as it gets

#

TY