--Loop to autosave data every 2 minutes

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)
