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
gif of the current situation
and what i need help in the script
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
and what i need help in the script