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!

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 [location] then teleport them back

Discussion in 'Requests' started by 8572, Dec 24, 2021.

  1. 8572

    8572 Member

    Joined:
    Dec 24, 2021
    Messages:
    2
    Likes Received:
    0
    Is there a way to teleport the player which executed the command to 257 90 -58, then after 10 seconds, teleport them back?

    -----------------------------

    I'm trying to make an admin room, I have this as the base:
    command /admin:
    permission: settingstp.admin
    permission message: You cannot do that!
    trigger:

    I've already tried this:
    command /admin:
    permission: settingstp.admin
    permission message: You cannot do that!
    trigger:
    set {currentpos2} to player's location
    loop 2 times:
    if player's location is not {currentpos2}:
    wait 10 seconds
    teleport player to {currentpos2}
    wait 1 second
    if player's location is not {currentpos2}:
    cancel event
    send "E"
    teleport player to location at 257, 90, -58 in world "world"

    Is there a way you can do that for me or fix my code so it does what I asked? Thanks!
     
  2. MrPannkaka

    MrPannkaka Member

    Joined:
    Apr 19, 2017
    Messages:
    3
    Likes Received:
    0
    Yea dude

    Code (Text):
    1. command /simpleshit:
    2.     trigger:
    3.         set {_oldloc} to location of player
    4.         teleport player to location at 257, 90, -58 in world "world"
    5.         wait 10 seconds
    6.         teleport player to {_oldloc}
     
  3. 8572

    8572 Member

    Joined:
    Dec 24, 2021
    Messages:
    2
    Likes Received:
    0
    Thanks
     

Share This Page

Loading...