• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Lua Teleport player to previous position

Niloahs

Well-Known Member
Joined
Feb 10, 2020
Messages
110
Solutions
1
Reaction score
81
Hello guys,
I have a script that makes player be teleported to the temple of the city he have the current citizenship, i use this script to make player leave the training room. Each city has a teleport targeted to training area, but what I wanted to see was if it is possible to get the player to be teleported to the last position before entering the training area.

follow the script

Lua:
function onStepIn(player, item, position, fromPosition)
    player:teleportTo(player:getTown():getTemplePosition())
    return false
end

gif of the current situation
70d3c9e084a7947a955d712c45570457.gif

and what i need help in the script

c52b155def7a9ad043b2754bb97c0bee.png
 
Back
Top