Solved Teleport code not working

  • 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 community!

    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.

Rgamer

Member
Aug 17, 2021
3
0
1
No matter what I have tried, I cant get the player to teleport where I want them to teleport, this is my current code:
command /server <text>:
aliases: /s
usage: &4/server [pvp/survival/IslandBlock/creative/lobby/join]
trigger:
if arg-1 is "pvp":
teleport player to location(208 4 -159 world "pvp" parsed as world)
if arg-1 is "s" or "survival":
teleport player to location(-47 75 -175 world "survival" parsed as world)
if arg-1 is "ib" or "isb" or "IslandBlock":
teleport player to location(-16 4 -17 "ib" parsed as world)

If anyone could help me that would be great!
 
No matter what I have tried, I cant get the player to teleport where I want them to teleport, this is my current code:
command /server <text>:
aliases: /s
usage: &4/server [pvp/survival/IslandBlock/creative/lobby/join]
trigger:
if arg-1 is "pvp":
teleport player to location(208 4 -159 world "pvp" parsed as world)
if arg-1 is "s" or "survival":
teleport player to location(-47 75 -175 world "survival" parsed as world)
if arg-1 is "ib" or "isb" or "IslandBlock":
teleport player to location(-16 4 -17 "ib" parsed as world)

If anyone could help me that would be great!
Please use code blocks, and also errors? what's not working? and are all of these actual worlds? also here's the documentation for the location function e.x:
Code:
teleport player to location(-47, 75, -175, world("worldName"))
 
Last edited:
The location function seperates all values by commas, so
Code:
location(x, y, z, world("worldname"))
would be the right way of using the function.
 
Status
Not open for further replies.