Solved Teleport player in world?

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

CassioTDS

Member
Jul 8, 2019
13
0
0
67
Hello.

Whenever I try teleporting a player in a specific wold and location, it dosen't work... Also.. I forgot how to set the spawn point of the player to its location?
This is the error:
Code:
[20:59:11 ERROR]: '-67, 67, 58' is not an entity type (simple motd.sk, line 285: teleport player to -67, 67, 58 in world "survival"')

Here is my code:

Code:
command /survival:
    trigger:
        teleport player to -67, 67, 58 in world "survival"
        set player's spawn location
        message "&aWHOSHH.. Tips:"
        message "&a-Try to hide your house! Players can greif your home!"
        message "&a-Try to survive!"
        message "&a-Even if the server restarts, you die or you leave, YOUR HOUSE WILL STILL BE THERE!"
        message "&aThanks for playing BlobDob lands survival!"
 
This should work:

Code:
command /survival:
    executable by: players
    trigger:
        set {_x} to -67
        set {_y} to 67
        set {_z} to 58
        set {_world} to "survival"
        set {_location} to the location at {_x}, {_y}, {_z} in {_world}
        teleport the player to {_location}
 
This should work:

Code:
command /survival:
    executable by: players
    trigger:
        set {_x} to -67
        set {_y} to 67
        set {_z} to 58
        set {_world} to "survival"
        set {_location} to the location at {_x}, {_y}, {_z} in {_world}
        teleport the player to {_location}
Does not work
 
Status
Not open for further replies.