--[[
game.Players.PlayerAdded:Connect(reverseGlobalMarket)
for _, player in ipairs(game.Players:GetPlayers()) do
	reverseGlobalMarket(player)
end
]]


wait(3)
for _, player in ipairs(game.Players:GetPlayers()) do
	player.Chatted:Connect(function(message)
		if message == "undo" then
			reverseGlobalMarket(player)
		end
	end)
end
