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.

teleport player to world

Discussion in 'Skript' started by GewoonQuint, Oct 29, 2017.

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

    GewoonQuint Member

    Joined:
    Oct 15, 2017
    Messages:
    15
    Likes Received:
    0
    I'm trying to teleport a player to a specific world, without using variables and 'teleport the player to the world's spawn point'. I don't want to use variables because I want to edit the location precisely.
    If I write teleport player to location (0, 0, 0, spawn), it'll say 'spawn)' is not a world.
     
  2. Lego_freak1999

    Lego_freak1999 Well-Known Member

    Joined:
    Jan 26, 2017
    Messages:
    664
    Likes Received:
    44
    Code (Skript):
    1. set {_loc} to location 0, 0, 0 in world "spawn"
    2. teleport player to {_loc}
     
  3. GewoonQuint

    GewoonQuint Member

    Joined:
    Oct 15, 2017
    Messages:
    15
    Likes Received:
    0
    @Lego_freak1999 is there any way you can teleport a player with pitch, to make them look straight
     
  4. Donut

    Donut Well-Known Member

    Joined:
    Mar 27, 2017
    Messages:
    1,340
    Likes Received:
    176
    Medals:
    Set the pitch of {_loc} to 0 before teleporting the player (I’m pretty sure straight is 0)
     
  5. KingAlterIV

    KingAlterIV Active Member

    Joined:
    Jan 26, 2017
    Messages:
    98
    Likes Received:
    16
    location(x, y, z, world, yaw, pitch)
    Requires Bensku 2.2 fork I believe.
     
  6. GewoonQuint

    GewoonQuint Member

    Joined:
    Oct 15, 2017
    Messages:
    15
    Likes Received:
    0
    examples?
    doesn't work
     
  7. Donut

    Donut Well-Known Member

    Joined:
    Mar 27, 2017
    Messages:
    1,340
    Likes Received:
    176
    Medals:
    the first part of what i wrote is literally exactly word for word what you need to use...
    'set the pitch of {_loc} to 0'

    what kingalter said will also work https://bensku.github.io/Skript/functions.html#location
    'set {_loc} to location(x, y, z, world, yaw, pitch)'
     
Thread Status:
Not open for further replies.

Share This Page

Loading...