1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Solved No move for 10 seconds

Discussion in 'Skript' started by Deku, Jul 16, 2020.

Thread Status:
Not open for further replies.
  1. Deku

    Deku Member

    Joined:
    Jul 12, 2020
    Messages:
    36
    Likes Received:
    0

    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 (Text):
    1. command /immobilizza [<player>]:
    2.     permission: immobilizza
    3.     permission message: &cNessun Permesso
    4.     trigger:
    5.         if arg-1 is set:
    6.         if distance between arg-1 and player is smaller than 4:
    7.         set {_location} to location of arg-1
    8.         loop 10 times:
    9.             set {_check} to location of arg-1
    10.         if {_check} isn't {_location}:
    11.             teleport arg-1 to {_location}
    12.             wait 2 ticks        
     
  2. FusionCore

    Supporter

    Joined:
    Apr 19, 2020
    Messages:
    44
    Likes Received:
    1
    Code (Text):
    1. command /immobilizza [<player>]:
    2.     permission: immobilizza
    3.     permission message: &cNessun Permesso
    4.     trigger:
    5.         if arg-1 is set:
    6.             if distance between arg-1 and player is smaller than 4:
    7.                 set {_location} to location of arg-1
    8.                 apply blindness to arg-1 for 10 seconds
    9.                 apply slowness to arg-1 for 10 seconds
    10.                 loop 100 times:
    11.                     set {_check} to location of arg-1
    12.                     if {_check} isn't {_location}:
    13.                         teleport arg-1 to {_location}
    14.                     wait 2 ticks
     
  3. Deku

    Deku Member

    Joined:
    Jul 12, 2020
    Messages:
    36
    Likes Received:
    0
    Thanks! Now Its work!
     
Thread Status:
Not open for further replies.

Share This Page

Loading...