Categories > Coding > Lua >

get localplayers previous position..

Posts: 20

Threads: 7

Joined: Jun, 2022

Reputation: 0

Posted

after teleporting a player to a location, i want to teleport him back to his previous location but i cant figure out how to do it?

  • 0

Posts: 1996

Threads: 198

Joined: Apr, 2021

Reputation: 13

Replied

I'm not a Lua scripter, but here's my idea on what you can do:
1. Before teleporting, save the player's current location

2. Teleport player to the specified location

3. If player clicks "Go Back", teleport him to the saved location

  • 0

Random quote here...

Posts: 20

Threads: 7

Joined: Jun, 2022

Reputation: 0

Replied

nvm i figured it out

  • 0

Added

@VoidableMethod

 

you dont get what i want but ok

  • 0

Posts: 1391

Threads: 71

Joined: May, 2022

Reputation: 17

Replied

@u9d

kinda seems like what u were talking about..

 

locking threads wont stop me muhahahah

  • 0

Did I mention I use arch btw?

Users viewing this thread:

( Members: 0, Guests: 1, Total: 1 )