local Players = game:GetService("Players") local VirtualInputManager = game:GetService("VirtualInputManager") local Player = Players.LocalPlayer local AtmGui = Player.PlayerGui.ScreenGui.Center.Middle.HackingMinigames["ATM Hack"] local BlockedColor = Color3.fromRGB(74, 75, 93) local ClickedButtons = {} local function GetCodes() local Codes = {} for Code in string.gmatch(AtmGui.Sequence1.Text, "([^%s]+)") do table.insert(Codes, Code) end return Codes end local function ClickButton(Button) local Pos = Button.AbsolutePosition local Size = Button.AbsoluteSize local X = Pos.X + Size.X/2 local Y = Pos.Y + Size.Y/2 VirtualInputManager:SendMouseButtonEvent(X, Y, 0, true, game, 0) VirtualInputManager:SendMouseButtonEvent(X, Y, 0, false, game, 0) end while task.wait() do if AtmGui and AtmGui.Sequence1.Text ~= "" then local Codes = GetCodes() for _, Button in ipairs(AtmGui.List:GetDescendants()) do if Button:IsA("ImageButton") and not ClickedButtons[Button] and Button.ImageColor3 ~= BlockedColor then for _, Label in ipairs(Button:GetDescendants()) do if Label:IsA("TextLabel") then for _, Code in ipairs(Codes) do if Label.Text == Code then ClickButton(Button) ClickedButtons[Button] = true break end end end if ClickedButtons[Button] then break end end end end end end