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.

How to teleport a player to a location

Discussion in 'Skript' started by Sitrr, Mar 28, 2022.

Tags:
Thread Status:
Not open for further replies.
  1. Sitrr

    Sitrr Member

    Joined:
    Mar 28, 2022
    Messages:
    1
    Likes Received:
    0
    I am a skript noob, so I want to ask this

    Current code :

    command /t:
    trigger:
    teleport player to "0, 60, 0"
     
  2. Darth_Maus

    Darth_Maus Member

    Joined:
    Mar 28, 2022
    Messages:
    2
    Likes Received:
    0
    try this:

    Code (Text):
    1. command /t:
    2.     executable by: player
    3.     trigger:
    4.         teleport player to 0 60 0
     
  3. Mich

    Mich Active Member

    Joined:
    Jul 15, 2020
    Messages:
    145
    Likes Received:
    5
    this is also a example of something you can make
    Code (Text):
    1. command /set [<text>]:
    2.     trigger:
    3.         if arg 1 is "spawn":
    4.             set {spawn} at the player's location
    5.             message "spawn set at %{spawn}%"
    6.         else if arg 1 is "lobby":
    7.             set {lobby} at the player's location
    8.             message "lobby set at %{lobby}%"
    9.         else:
    10.             message "/set spawn"
    11.             message "/set lobby"
    12.  
    13. command /teleport [<text>]:
    14.     trigger:
    15.         if arg 1 is "spawn":
    16.             teleport the player to {spawn}
    17.             message "You are at spawn"
    18.         else if arg 1 is "lobby":
    19.             teleport the player to {lobby}
    20.             message "You are at lobby"
    21.         else:
    22.             message "/teleport spawn"
    23.             message "/teleport lobby"
     
Thread Status:
Not open for further replies.

Share This Page

Loading...