This teleports you to a location you were just a moment ago. I have 2 different ways to implement this
Teleport when the effect happens. This means that the player coordinates need to saved regularly and used only then the effect happens.
One time effect
Save current coordinates at the start of the effect and teleport when it ends. Though this means player knows beforehand they are going to get teleported.
Timed effect, 1x cooldown
This teleports you to a location you were just a moment ago. I have 2 different ways to implement this
Teleport when the effect happens. This means that the player coordinates need to saved regularly and used only then the effect happens. One time effect
Save current coordinates at the start of the effect and teleport when it ends. Though this means player knows beforehand they are going to get teleported. Timed effect, 1x cooldown