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: 2016

Threads: 198

Joined: Apr, 2021

Reputation: 16

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: 1433

Threads: 71

Joined: May, 2022

Reputation: 20

Replied

@u9d

kinda seems like what u were talking about..

 

locking threads wont stop me muhahahah

  • 0

i use arch btw

Cyros

Revision

Posts: 1057

Threads: 48

Joined: Feb, 2021

Reputation: 20

Replied

abbabababaa locked thread lol

  • 0

We Hate VOID

Users viewing this thread:

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