-- Checks if the player is new, otherwise will populate with saved data

Players.PlayerAdded:Connect(function(player)
	local data
	local success = pcall(function()
		data = AllPlayers:GetAsync(player.UserId)
	end)

	if success then
		local status = ""

		if not data then
			AllPlayers:SetAsync(player.UserId, true)
		else
			status = Statuses:GetAsync(player.UserId)
		end

		player:SetAttribute("status", status)
	end
end)
