Can someone help me add a cool down please.

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

finlay

Member
Oct 18, 2022
3
0
1
18
This is the script i want it so you can only use it every 30 seconds please

on right click:
if name of player's held item is "&eSword":
push the player upwards
push the player upwards
push the player upwards
push the player upwards
push the player forwards
push the player forwards
play explosion at player
wait 1.5 seconds
apply slow falling 1 to player for 10 seconds
wait 5 seconds
apply speed 2 to player for 15 seconds
 
you need to do "if {cooldown.%player%} is not set:"
then later down do "set {cooldown.%player%} to true"
Later do "wait 30 seconds"
after
"delete {cooldown.%player%}"
 
BoxMiners thank you but i think i did it wrong is this it?

on right click:
if {cooldown.%player%} is not set:
if name of player's held item is "&eSword":
push the player upwards
push the player upwards
push the player upwards
push the player upwards
push the player forwards
push the player forwards
play explosion at player
wait 1.5 seconds
apply slow falling 1 to player for 10 seconds
wait 5 seconds
apply speed 2 to player for 15 seconds
set {cooldown.%player%} to true
wait 30 seconds
delete {cooldown.%player%}
 
BoxMiners thank you but i think i did it wrong is this it?

on right click:
if {cooldown.%player%} is not set:
if name of player's held item is "&eSword":
push the player upwards
push the player upwards
push the player upwards
push the player upwards
push the player forwards
push the player forwards
play explosion at player
wait 1.5 seconds
apply slow falling 1 to player for 10 seconds
wait 5 seconds
apply speed 2 to player for 15 seconds
set {cooldown.%player%} to true
wait 30 seconds
delete {cooldown.%player%}
It should work now
 
on right click:
if {cooldown.%player%} is not set:
if name of player's held item is "&eSword":
push the player upwards
push the player upwards
push the player upwards
push the player upwards
push the player forwards
push the player forwards
play explosion at player
wait 1.5 seconds
apply slow falling 1 to player for 10 seconds
wait 5 seconds
apply speed 2 to player for 15 seconds
set {cooldown.%player%} to true
wait 30 seconds
delete {cooldown.%player%}
 
Status
Not open for further replies.