Check player's location and then play animation

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

Shamer36

Member
Oct 16, 2022
2
0
1
22
Code:
every tick:
    loop all players
    set {loc} to player's location
if {loc} is 50026 13 50001:
    make console execute command "gamemode spectator %player%"
    freeze player
    teleport player to 50026 27 50001
    wait 0.5 second
    teleport player to 50026 24 50001
    wait 0.5 second
    teleport player to 50026 27 50001
    wait 0.5 second
    teleport player to 50026 24 50001
    wait 1 second
    teleport player to 50026 13 50001
    make console execute command "gamemode survival %player%"
    set block to barrier at {loc}
    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.
 
try this but it has mistakes i cant fix
Code:
every tick:
    loop all players:
        set {loc} to loop-player's location
        set {start::*} to false
every tick:
    if {loc} is 50026 13 50001:
        make console execute command "/gamemode spectator %player%"
        freeze player
        teleport player to 50026 27 50001
        wait 0.5 second
        teleport player to 50026 24 50001
        wait 0.5 second
        teleport player to 50026 27 50001
        wait 0.5 second
        teleport player to 50026 24 50001
        wait 1 second
        teleport player to 50026 13 50001
        make console execute command "/gamemode survival %player%"
        set block to barrier at {loc}
        set {start::*} to true
    if {start::*} is true
    loop all players:
        send loop-player title "&bCorruptor Boss" for 1 seconds
        send loop-player title "&dCorruptor Boss" for 1 seconds
 
  • Like
Reactions: Shamer36
Status
Not open for further replies.