-- AUTO CHANGE MONEY ONLY (STABLE) local player = game.Players.LocalPlayer local vim = game:GetService("VirtualInputManager") -- ========================= -- 🖱️ CLICK THẬT -- ========================= local function click(btn) local pos = btn.AbsolutePosition local size = btn.AbsoluteSize local x = pos.X + size.X/2 local y = pos.Y + size.Y/2 vim:SendMouseButtonEvent(x, y, 0, true, game, 0) task.wait(0.05) vim:SendMouseButtonEvent(x, y, 0, false, game, 0) end -- ========================= -- 🔍 TÌM GUI THỐI TIỀN -- ========================= local function getMoneyGUI() for _, gui in pairs(player.PlayerGui:GetChildren()) do if gui:IsA("ScreenGui") and gui.Enabled then for _, v in pairs(gui:GetDescendants()) do if v:IsA("TextLabel") and v.Text and v.Text:find("Thối") then return gui end end end end end -- ========================= -- 💰 TÌM NÚT TIỀN -- ========================= local function findMoneyButton(gui, value) for _, v in pairs(gui:GetDescendants()) do if v:IsA("ImageButton") or v:IsA("TextButton") then for _, c in pairs(v:GetDescendants()) do if c:IsA("TextLabel") then if tonumber(c.Text) == value then return v end end end end end end -- ========================= -- 🟢 TÌM NÚT "ĐƯA" -- ========================= local function findGiveButton(gui) local best = nil local maxX = 0 for _, v in pairs(gui:GetDescendants()) do if v:IsA("ImageButton") or v:IsA("TextButton") then -- ưu tiên có chữ "đưa" if v.Text and v.Text:lower():find("đưa") then return v end for _, c in pairs(v:GetDescendants()) do if c:IsA("TextLabel") and c.Text then if c.Text:lower():find("đưa") then return v end end end -- fallback: nút bên phải nhất local x = v.AbsolutePosition.X if x > maxX then maxX = x best = v end end end return best end -- ========================= -- 💵 XỬ LÝ THỐI TIỀN -- ========================= local function handleMoney(gui) for _, v in pairs(gui:GetDescendants()) do if v:IsA("TextLabel") and v.Text and v.Text:find("Thối") then local amount = tonumber(v.Text:match("%d+")) if not amount then return end local bills = {50,20,10,5,1} -- bấm tiền for _, val in ipairs(bills) do while amount >= val do local btn = findMoneyButton(gui, val) if btn then click(btn) task.wait(0.12) amount -= val else break end end end -- đợi UI cập nhật task.wait(0.4) -- bấm đưa local giveBtn = findGiveButton(gui) if giveBtn then click(giveBtn) task.wait(0.3) end return end end end -- ========================= -- 🔁 LOOP -- ========================= task.spawn(function() while task.wait(0.25) do pcall(function() local gui = getMoneyGUI() if gui then handleMoney(gui) end end) end end)