spawn(function()while wait(121)do for z,p in pairs(game.Players:GetPlayers())do beforeSave(p)end end end)

spawn(function()
	while wait(121) do --Loop every 2 minutes and save every player's data
		for _,Player in pairs(game.Players:GetPlayers()) do
			beforeSave(Player)
		end
	end
end)
