WHY U NO WORK?

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

JustADev

Well-Known Member
Apr 8, 2017
379
9
18
22
Code:
code_language.skript:
on rightclick with diamond sword:
    name of player's tool is "&eIce Mage Sword":
        set {_Waited} to difference between {Freeze::%player%} and now
        if {_Waited} is less than 20 seconds:
            stop
        else:
            set {AbilityInUse} to "True"
            send "&cAbility &8&l» &7You have activated your &aFreeze &7ability" to player
            set {Freeze::%player%} to now
            loop players in radius 4 around player:
                set the freeze state of loop-player to true
                wait 2 seconds
                set the freeze state of loop-player to false
 
Ok the issue is that it can't define the freeze state of the loop-player:

code_language.skript:
on rightclick with diamond sword:
    name of player's tool is "&eIce Mage Sword":
        set {_Waited} to difference between {Freeze::%player%} and now
        if {_Waited} is less than 20 seconds:
            stop
        else:
            set {AbilityInUse} to "True"
            send "&cAbility &8&l» &7You have activated your &aFreeze &7ability" to player
            set {Freeze::%player%} to now
            loop players in radius 4 around player:
                set the freeze state of loop-player to true
                wait 2 seconds
                set the freeze state of loop-player to false
 
Status
Not open for further replies.