So, I made this one script who teleports the player to the last login location:
game.Players.PlayerAdded:connect(function(player)
wait(1)
local p1 = player.Time.position1.Value
local p2 = player.Time.position2.Value
local p3 = player.Time.position3.Value
player.Character.HumanoidRootPart.CFrame = CFrame.new(p1,p2,p3)
end)
but for some reason it only works in roblox studio but not in an actual server, any ideas of what I could have done wrong?

3 comments
The Pos cannot be in one variable since I am saving it in an int value table
oh
You need to have a Vector3Value