What's new
Heapleak - Scripthub

Get the most out of HeapLeak by creating a free account! Once signed in, you’ll gain full access to restricted content, be able to share your own scripts, and participate in our member-only discussions.

simple auto dex farm

Version / Update: v1.0.0
Download / Script Link
local surfaceGui = game.workspace.Machinery.BOX1.TV.OO
local goalNumber = nil
local currentNumber = nil
local lowestY = math.huge
local highestZ = -math.huge

local Players = game:GetService("Players")
local player = Players.LocalPlayer

local gui = Instance.new("ScreenGui")
gui.Name = "BoxSelectorUI"
gui.ResetOnSpawn = false
gui.Parent = player:WaitForChild("PlayerGui")

local frame = Instance.new("Frame")
frame.Size = UDim2.fromOffset(350, 600)
frame.Position = UDim2.fromScale(0.05, 0.35)
frame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
frame.BorderSizePixel = 0
frame.Parent = gui

frame.Active = true
frame.Draggable = true

local title = Instance.new("TextLabel")
title.Size = UDim2.new(1, 0, 0, 40)
title.Text = "Simple Dex Farm"
title.TextScaled = true
title.BackgroundTransparency = 1
title.TextColor3 = Color3.new(1, 1, 1)
title.Parent = frame

local buttonFrame = Instance.new("Frame")
buttonFrame.Size = UDim2.fromScale(1, 1)
buttonFrame.Position = UDim2.fromOffset(0, 50)
buttonFrame.BackgroundTransparency = 1
buttonFrame.Parent = frame

local layout = Instance.new("UIListLayout")
layout.Padding = UDim.new(0, 12)
layout.HorizontalAlignment = Enum.HorizontalAlignment.Center
layout.VerticalAlignment = Enum.VerticalAlignment.Center
layout.Parent = buttonFrame

local closeBtn = Instance.new("TextButton")
closeBtn.Size = UDim2.fromOffset(24, 24)
closeBtn.Position = UDim2.new(1, -28, 0, 6)
closeBtn.Text = "X"
closeBtn.TextScaled = true
closeBtn.BackgroundColor3 = Color3.fromRGB(160, 60, 60)
closeBtn.TextColor3 = Color3.new(1, 1, 1)
closeBtn.BorderSizePixel = 0
closeBtn.Parent = frame

closeBtn.MouseButton1Click:Connect(function()
gui:Destroy()
end)

local minimizeBtn = Instance.new("TextButton")
minimizeBtn.Size = UDim2.fromOffset(24, 24)
minimizeBtn.Position = UDim2.fromOffset(6, 6)
minimizeBtn.Text = "▢"
minimizeBtn.TextScaled = true
minimizeBtn.BackgroundColor3 = Color3.fromRGB(80, 80, 80)
minimizeBtn.TextColor3 = Color3.new(1, 1, 1)
minimizeBtn.BorderSizePixel = 0
minimizeBtn.Parent = frame

local minimized = false
local originalSize = frame.Size

minimizeBtn.MouseButton1Click:Connect(function()
if not minimized then
originalSize = frame.Size
frame.Size = UDim2.fromOffset(60, 60)
buttonFrame.Visible = false
title.Visible = false
minimized = true
else
frame.Size = originalSize
buttonFrame.Visible = true
title.Visible = true
minimized = false
end
end)

local function createButton(text)
local btn = Instance.new("TextButton")
btn.Size = UDim2.fromOffset(300, 60)
btn.Text = text
btn.TextScaled = true
btn.BackgroundColor3 = Color3.fromRGB(70, 70, 70)
btn.TextColor3 = Color3.new(1, 1, 1)
btn.BorderSizePixel = 0
btn.Parent = buttonFrame
return btn
end

local box1Button = createButton("BOX1")
local box2Button = createButton("BOX2")
local box3Button = createButton("BOX3")
local grindbtn = createButton("GRIND")

local function space()
local args = {
"Yeaichangedit"
}
game:GetService("ReplicatedStorage"):WaitForChild("Action"):WaitForChild("GymUse"):FireServer(unpack(args))
end
local function m1()
local args = {
"CL"
}
game:GetService("ReplicatedStorage"):WaitForChild("Action"):WaitForChild("GymUse"):FireServer(unpack(args))
end

local function getcurrentandgoal()
lowestY = math.huge
highestZ = -math.huge
goalNumber = nil
currentNumber = nil
for _, obj in ipairs(surfaceGui:GetDescendants()) do
if obj:IsA("TextLabel") then
if obj.Visible
and obj.BackgroundColor3 == Color3.fromRGB(255,81,0)
and obj.TextTransparency < 1 then

local y = obj.AbsolutePosition.Y

if y < lowestY then
lowestY = y
goalNumber = tonumber(obj.Text)
end
end
end
end
for _, obj in ipairs(surfaceGui:GetDescendants()) do
if obj:IsA("TextLabel")
and obj.Visible
and obj.TextTransparency < 1
and obj.BackgroundColor3 == Color3.fromRGB(27,42,53) then

if obj.ZIndex > highestZ then
highestZ = obj.ZIndex
currentNumber = obj.Text
end
end
end
end
local function onBOX1Pressed()
surfaceGui = game.workspace.Machinery.BOX1.TV.OO
getcurrentandgoal()
box1Button.BackgroundColor3 = Color3.fromRGB(100,30,0)
box2Button.BackgroundColor3 = Color3.fromRGB(70, 70, 70)
box3Button.BackgroundColor3 = Color3.fromRGB(70, 70, 70)
end

local function onBOX2Pressed()
surfaceGui = game.workspace.Machinery.BOX2.TV.OO
getcurrentandgoal()
box2Button.BackgroundColor3 = Color3.fromRGB(100,30,0)
box3Button.BackgroundColor3 = Color3.fromRGB(70, 70, 70)
box1Button.BackgroundColor3 = Color3.fromRGB(70, 70, 70)
end

local function onBOX3Pressed()
surfaceGui = game.workspace.Machinery.BOX3.TV.OO
getcurrentandgoal()
box3Button.BackgroundColor3 = Color3.fromRGB(100,30,0)
box2Button.BackgroundColor3 = Color3.fromRGB(70, 70, 70)
box1Button.BackgroundColor3 = Color3.fromRGB(70, 70, 70)
end
local function start_stop()
if grindbtn.BackgroundColor3 == Color3.fromRGB(70, 70, 70) then
grindbtn.BackgroundColor3 = Color3.fromRGB(10,200,30)
else
grindbtn.BackgroundColor3 = Color3.fromRGB(70, 70, 70)
end
getcurrentandgoal()
if currentNumber == "WIN" or currentNumber == "LOSE" then
currentNumber = tostring(0)
end
while(tonumber(currentNumber) < goalNumber) do
if grindbtn.BackgroundColor3 == Color3.fromRGB(70, 70, 70) then
break
end
getcurrentandgoal()
if currentNumber ~= "WIN" then
local gerekenSpace = (goalNumber-tonumber(currentNumber))//100
if gerekenSpace > 0 then
space()
wait(0.75)
else
m1()
wait(0.10)
end
else
currentNumber = tostring(0)
local gerekenSpace = (goalNumber-tonumber(currentNumber))//100
if gerekenSpace > 0 then
space()
wait(0.75)
else
m1()
wait(0.10)
end
end

end
end

box1Button.MouseButton1Click:Connect(onBOX1Pressed)
box2Button.MouseButton1Click:Connect(onBOX2Pressed)
box3Button.MouseButton1Click:Connect(onBOX3Pressed)
grindbtn.MouseButton1Click:Connect(start_stop)
[ View More ]
8576654d-86c9-4441-8c69-a711331c1e74.webp


you just select a box and grind dex auto. left is BOX1, right is BOX3, middle is BOX2. ui is movable. you can minimize it with the button on top left. close it with button on top right. and thats about it. when grind button is active it does as many uppercuts as possible and wins everytime (so far no errors). contact "umutamagamer" in discord if there is errors. IMPORTANT NOTE: it works in class C and class B but im not sure about others. since i only was able to test it in C and B
 
Back
Top