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.

Void Teleport Command

Discussion in 'Skript' started by Jeffinton, Feb 4, 2021.

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

    Jeffinton Member

    Joined:
    Jan 20, 2021
    Messages:
    2
    Likes Received:
    0
    How do you make a skript that runs when the player is under a certain y level. I don't mean "y coord of player" because that is an expression. I want a y coord event that lets me trigger code that teleports them to spawn. Is this possible?
     
  2. TehCheetah

    TehCheetah Member

    Joined:
    Feb 7, 2021
    Messages:
    49
    Likes Received:
    1
    Try making it so that at that certain y coord the servers console either sudos the player to teleport to spawn, or make it so the console executes the command /spawn (player)
     
  3. Turb032

    Turb032 Active Member

    Joined:
    Jan 16, 2020
    Messages:
    107
    Likes Received:
    0
    Could you send here your current code please? And, you could just use:
    Code (Text):
    1. every second:
    2.     loop all players:
    3.         if loop-player's y location <= 2:
    4.             #Your code here
    5.  
     
Thread Status:
Not open for further replies.

Share This Page

Loading...