I have had this issue where when the player respawns the camera of the player always faces to the left for some reason. I have tried rotating the checkpoint since the script uses the cframe but it still does not work.
Here is the code
player.CharacterAdded:Connect(function(character: Model)
task.wait()
local corresponding_stage = WorkspaceStages:FindFirstChild(tostring(Stage.Value))
if corresponding_stage then
local cframe = CFrame.new(corresponding_stage.Position + Vector3.new(0, 4, 0))
character:PivotTo(cframe)
end
end)
end)