I have tried every way possible manually saving it and automatically saving it doesn't work even with a key. But now I wanna automatically save the characters position upon leave any help?
game.Players.PlayerAdded:connect(function(player)
local Data=game:GetService("DataStoreService"):GetDataStore("Load")
local SaveGui=player:FindFirstChild("ScreenGui"):FindFirstChild("Load")
SaveGui.MouseButton1Down:connect(function()
function clicked()
if player.DataReady==true then
Data:GetAsync(player.userId,player.Character:WaitForChild("Torso").Position.Vector3.x,player.Character:WaitForChild("Torso").Position.Vector3.y,player.Character:WaitForChild("Torso").Position.Vector3.z)
end
end
end)

3 comments
Question for the first one isnt the getasync suppose to load? Upon Join? Instead of using MoveTo why not get the Torsos previous saved position?
Nvm all of this, your script does not work.
It might have not worked because of several aspects: - Server might get closed before it saved your position (use OnClose for that), - The Character might already be gone when it tries to get the Torso's position, to fix that you could make some kind of autosave system instead