Omex Posted July 3, 2022 Share Posted July 3, 2022 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 More sharing options...
MrTibo Posted July 3, 2022 Share Posted July 3, 2022 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 More sharing options...
Omex Posted July 3, 2022 Author Share Posted July 3, 2022 It worked, Thanks Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now