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.

Solved Set location to a variable.

Discussion in 'Skript' started by Kezard, Dec 16, 2020.

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

    Kezard Member

    Joined:
    May 22, 2020
    Messages:
    11
    Likes Received:
    0
    upload_2020-12-16_9-15-46.png
    on join:
    set {spawn.%player%} to location at (0.5, 66, -1.5) in world "sb%player%"

    I'm guessing there is an error because the world has %player% in it but I don't know how to fix this.
     
  2. Best Answer:
    Post #2 by MusicManSK, Dec 16, 2020
  3. MusicManSK

    MusicManSK Active Member

    Joined:
    Nov 30, 2017
    Messages:
    232
    Likes Received:
    11
    Try this:
    Code (Text):
    1. on join:
    2.     set {_loc} to location at (0.5, 66, -1.5) in world "sb%player%" parsed as world
     
  4. Kezard

    Kezard Member

    Joined:
    May 22, 2020
    Messages:
    11
    Likes Received:
    0
    Thank you for the help!
     
    #3 Kezard, Dec 16, 2020
    Last edited: Dec 16, 2020
Thread Status:
Not open for further replies.

Share This Page

Loading...