local dss=game:GetService'DataStoreService':GetDataStore'Data'
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
local getdata=dss:GetAsync(player.UserId)
if getdata then
character.HumanoidRootPart.CFrame=CFrame.new(getdata[1],getdata[2],getdata[3])
end
end)
end)
game.Players.PlayerRemoving:Connect(function(player)
local savedata={
player.Character.HumanoidRootPart.Position.X,
player.Character.HumanoidRootPart.Position.Y,
player.Character.HumanoidRootPart.Position.Z
}
dss:SetAsync(player.UserId,savedata)
end)
I'm trying to get player's x, y and z positions, store them in a table and load them when player joins with them saved. However, I can't make it work and the output says nothing... I'm very green with data stores and I would very appreciate any help.

3 comments
Thanks for the answer but that doesn't seem to be the problem... :/
If it's not saving, it's not going to load. Otherwise there is an error and you should be able to see it in the output. StarterServer > 1 player. Leave the window your character has loaded in, look in server output.
Thanks a bunch! I got it to work now c: