Solved No move for 10 seconds

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

Deku

Member
Jul 12, 2020
36
0
6
19

I would like to create a skript that at the specific command blocks my movements for 10 seconds, and adds me blindness and slowness always for 10 seconds, how can I do it?


Code:
command /immobilizza [<player>]:
    permission: immobilizza
    permission message: &cNessun Permesso
    trigger:
        if arg-1 is set:
        if distance between arg-1 and player is smaller than 4:
        set {_location} to location of arg-1
        loop 10 times:
            set {_check} to location of arg-1
        if {_check} isn't {_location}:
            teleport arg-1 to {_location}
            wait 2 ticks
 
Code:
command /immobilizza [<player>]:
    permission: immobilizza
    permission message: &cNessun Permesso
    trigger:
        if arg-1 is set:
            if distance between arg-1 and player is smaller than 4:
                set {_location} to location of arg-1
                apply blindness to arg-1 for 10 seconds
                apply slowness to arg-1 for 10 seconds
                loop 100 times:
                    set {_check} to location of arg-1
                    if {_check} isn't {_location}:
                        teleport arg-1 to {_location}
                    wait 2 ticks
 
Code:
command /immobilizza [<player>]:
    permission: immobilizza
    permission message: &cNessun Permesso
    trigger:
        if arg-1 is set:
            if distance between arg-1 and player is smaller than 4:
                set {_location} to location of arg-1
                apply blindness to arg-1 for 10 seconds
                apply slowness to arg-1 for 10 seconds
                loop 100 times:
                    set {_check} to location of arg-1
                    if {_check} isn't {_location}:
                        teleport arg-1 to {_location}
                    wait 2 ticks
Thanks! Now Its work!
 
Status
Not open for further replies.