-- read documentation { https://github.com/Van1a/codescout } -- join discord { https://discord.gg/CcXSFzTzKD } local httpService = cloneref(game:GetService("HttpService")) local marketplace = cloneref(game:GetService("MarketplaceService")) local virtualInput = cloneref(game:GetService("VirtualInputManager")) local gameName = marketplace:GetProductInfo(game.PlaceId).Name :gsub("%b()", "") :gsub("%b[]", "") :gsub("%s+", " ") :gsub("^%s+", "") :gsub("%s+$", "") local response = request({ Url = "https://codescoutapi.onrender.com/codes/" .. httpService:UrlEncode(gameName), Method = "GET" }) local data = httpService:JSONDecode(response.Body) print("__________________________________________________________") print("\n====================== INFORMATION ======================") print("Message:", data.message) print("Game:", data.query.title) print("Slug:", data.query.slug) print("Status:", data.status) print("\n====================== ACTIVE CODES ======================") for _, code in ipairs(data.activeCodes) do print("CODE:", code.code, "REWARD:", code.description) end print("\n====================== EXPIRED CODES ======================") for _, code in ipairs(data.expiredCodes) do print(code.code) end print("\n====================== SIMILAR GAMES ======================") for _, game in ipairs(data.similar) do print(game.title, "-", game.slug) end print("__________________________________________________________") virtualInput:SendKeyEvent(true, Enum.KeyCode.F9, false, game)