spawn(function()while wait(autosaveInterval)do for a,U in pairs(main.pd)do if main.players:FindFirstChild(a.Name)==nil then U=nil else savePlayerData(a)end end end end)

spawn(function()
	while wait(autosaveInterval) do
		for player, pdata in pairs(main.pd) do
			if main.players:FindFirstChild(player.Name) == nil then
				pdata = nil
			else
				savePlayerData(player)
			end
		end
	end
end)



