Teleport player to [location] then teleport them back

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

8572

Member
Dec 24, 2021
2
0
1
17
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!
 
Yea dude

Code:
command /simpleshit:
    trigger:
        set {_oldloc} to location of player
        teleport player to location at 257, 90, -58 in world "world"
        wait 10 seconds
        teleport player to {_oldloc}