Teleporting player with Skript- Wrong 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.

Aidan

Member
Aug 7, 2020
12
0
1
28
I have 2 worlds: Lobby and Minigames.

You are in the world Minigames and you right click a sign.
It teleports you to coordinates in the world Minigames.
When I do it, it teleports me to those coordinates in Lobby world.
The plugins I have are Skript and SkQuery.

For the last line, I have tried:

make console execute "teleport %player% -244 -14 -60"
teleport player to -244 14 -60
teleport player to -244 14 60 in world "minigames"

Here is the skript:

Code:
on rightclick on sign:
    1st line of clicked block is "[Click to PvP]":
        set line 3 of clicked block to "Teleporting"
        set line 4 of clicked block to "%player%"
        wait 3.5 seconds
        set line 3 of clicked block to ""
        set line 4 of clicked block to ""
        teleport player to -244, 14, -60 in world "minigames"
 
Status
Not open for further replies.