Jump to content

can someone help me?


Omex

Recommended Posts

I've made a warp skript and it doesnt work, can someone help me?

Quote

on step on light blue stained glass:
        if {cooldown::%player's uuid%} is "false":
                set {cooldown::%player's uuid%} to "true"
                send title "&6&lTeleporting" to player
                wait 3 seconds
                teleport player to location(48, 68, -1, world "voiddd")
                wait 15 seconds
                set {cooldown::%player's uuid%} to "false"
                else if{cooldown::%player's uuid%} is "true":
                send "&cThis ability is still on cooldown!" to player
                else if{cooldown::%player's uuid%} is not set:
                set {cooldown::%player's uuid%} to "false"
            
            
on step on blue stained glass:
    if {cooldown::%player's uuid%} is "false":
        set {cooldown::%player's uuid%} to "true"
        send title "&6&lTeleporting" to player 
        wait 3 seconds
        teleport player to location(65, 68, 11, world "voiddd")
        wait 15 seconds
        set {cooldown::%player's uuid%} to "false"
        else if{cooldown::%player's uuid%} is "true":
            send "&cThis ability is still on cooldown!" to player
        else if{cooldown::%player's uuid%} is not set:
            set {cooldown::%player's uuid%} to "false"

 

Link to comment
Share on other sites

the variable isn't 'false' when you join making it stop at the first if statement, instead you could check if the variable is not set, and delete when the cooldown is over

[<3]

DMs open - Discord » mrtibo | or send a forum message

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...