I have a string value that takes my last known position and changes it with tostring(). When I join back, that value is exactly the same, showing that it saves correctly.
When I leave
p.CharacterRemoving:Connect(function(char) local lastPos = tostring(char.HumanoidRootPart.Position) StringModel.CharacterPosition.Value = lastPos print(StringModel.CharacterPosition.Value) end)
When I join
p.CharacterAdded:Connect(function(char) if Spawned[p.Name].Spawned == false then --If first spawn local newPos = Vector3.new(tonumber(StringModel.CharacterPosition.Value)) print(newPos) --last position is correct p.Character.HumanoidRootPart.CFrame = CFrame.new(newPos) --^ not working. i still spawn in the same old spot print("Teleported") Spawned[p.Name].Spawned = true end end)
I do not have a spawnlocation to conflict, not sure whats going on.