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.

Check player's location and then play animation

Discussion in 'Skript' started by Shamer36, Nov 15, 2022.

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

    Shamer36 Member

    Joined:
    Oct 16, 2022
    Messages:
    2
    Likes Received:
    0
    Code (Text):
    1. every tick:
    2.     loop all players
    3.     set {loc} to player's location
    4. if {loc} is 50026 13 50001:
    5.     make console execute command "gamemode spectator %player%"
    6.     freeze player
    7.     teleport player to 50026 27 50001
    8.     wait 0.5 second
    9.     teleport player to 50026 24 50001
    10.     wait 0.5 second
    11.     teleport player to 50026 27 50001
    12.     wait 0.5 second
    13.     teleport player to 50026 24 50001
    14.     wait 1 second
    15.     teleport player to 50026 13 50001
    16.     make console execute command "gamemode survival %player%"
    17.     set block to barrier at {loc}
    18.     set {start} to true
    Hello, so i need help with this, and i need to make this thing work. Rn it is not working
    also i need so while the animation will play there will be a title "&dCorruptor Boss" that would change color to "&bCorruptor Boss" and then again to "&dCorruptor Boss" (by using {start} im going to start the boss fight), help me please.
     
  2. iFammYT

    iFammYT Member

    Joined:
    Nov 6, 2022
    Messages:
    13
    Likes Received:
    1
    try this but it has mistakes i cant fix
    Code (Text):
    1. every tick:
    2.     loop all players:
    3.         set {loc} to loop-player's location
    4.         set {start::*} to false
    5. every tick:
    6.     if {loc} is 50026 13 50001:
    7.         make console execute command "/gamemode spectator %player%"
    8.         freeze player
    9.         teleport player to 50026 27 50001
    10.         wait 0.5 second
    11.         teleport player to 50026 24 50001
    12.         wait 0.5 second
    13.         teleport player to 50026 27 50001
    14.         wait 0.5 second
    15.         teleport player to 50026 24 50001
    16.         wait 1 second
    17.         teleport player to 50026 13 50001
    18.         make console execute command "/gamemode survival %player%"
    19.         set block to barrier at {loc}
    20.         set {start::*} to true
    21.     if {start::*} is true
    22.     loop all players:
    23.         send loop-player title "&bCorruptor Boss" for 1 seconds
    24.         send loop-player title "&dCorruptor Boss" for 1 seconds
     
    Shamer36 likes this.
Thread Status:
Not open for further replies.

Share This Page

Loading...