#Cooldown on Nuke

40 messages · Page 1 of 1 (latest)

tranquil thunder
#

How do I add a cooldown so that the nuke only can be activated every say 20 minutes

tranquil thunder
#

@raven field I tried that it still lets the button activate

raven field
#

Is everything inside the If debounce == false then

end

#

?

tranquil thunder
#

Btw is local cd milliseconds or seconds

#

I had it at 1000 before

raven field
#

Idk what’s wrong, any errors?

tranquil thunder
#

let me run it again and test

violet portal
#

studio** You are now Level 3! **studio

tranquil thunder
#

Is it milliseconds or seconds

raven field
#

Seconds

tranquil thunder
#

I just ran it and 100 seconds later it let me run again

raven field
#

So the debounce works?

#

It’s just the cooldown?

tranquil thunder
#

Idk

#

I want it to only work every 20 minutes to prevent spam

#

but it's letting me activate it back to back

raven field
#

That would be 1200 seconds

#

So set the cd to 1200

tranquil thunder
#

rn it's at 100k

raven field
#

And then join do it and try again

raven field
tranquil thunder
#

I also tested it at 1000

#

didn't work

raven field
#

Idk what might be wrong

tranquil thunder
#

Also any way to make a visible countdown

raven field
#

GUI

tranquil thunder
#

Like a sign

#

that has the countdown on it

raven field
tranquil thunder
raven field
#

Hm

#

Idk tbh sorry

tranquil thunder
#

dw

green plinth
#

a