spawn(function()while wait(autosaveInterval)do for S,z in pairs(main.pd)do if main.players:FindFirstChild(S.Name)==nil then z=nil else savePlayerData(S)end end end end)
-- << SETUP >>
--Autosave
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)
