Position Saving

Does anyone know how I can make a position saver? So whenever someone leaves and rejoins they’re in the same position, I don’t want it checkpoint based, I want it where the exact position saves. I don’t know the first thing about data saving, if someone could help me out that would be great!

You cannot save instances but you can serialize the instance by storing the properties you need.

In this case you cannot save the Vector3 | Roblox Creator Documentation Value but you can serialize by storing X,Y,Z the table would look like this

P = {X = 0 , Y = 0 , Z = 0} -- P = Position
P.X = HumanoidRootPart.Position.X
P.Y = HumanoidRootPart.Position.Y
p.Z = HumanoidRootPart.Position.Z

This would be the table you will be storing and saving

But how would I turn this into a data store, like I said I dont know the first thing about data stores

Heres a Resource

I recommend using GlobalDataStore | Roblox Creator Documentation to update the Player Position every 30-60 seconds maybe anything less may be too taxing

1 Like