local screenGui = Instance.new("ScreenGui")
screenGui.Name = "Chad painel"
screenGui.Parent = game:GetService("CoreGui")
screenGui.ResetOnSpawn = false
local frame = Instance.new("Frame")
frame.Size = UDim2.new(0, 200, 0, 210)
frame.Position = UDim2.new(0.5, -100, 0.4, 0)
frame.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
frame.Active = true
frame.Draggable = true
frame.Parent = screenGui
local title = Instance.new("TextLabel")
title.Size = UDim2.new(1, 0, 0, 30)
title.Text = "Chad painel"
title.TextColor3 = Color3.fromRGB(255, 255, 255)
title.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
title.Parent = frame
local function executarBotao1()
local remote = game:GetService("ReplicatedStorage"):WaitForChild("RemoteFunctions"):FindFirstChild("Edge")
if remote then remote:InvokeServer() end
end
local function executarBotao2()
local event = game:GetService("ReplicatedStorage"):WaitForChild("RemoteEvents"):FindFirstChild("Edge")
if event then event:FireServer(true) end
end
local btn1 = Instance.new("TextButton")
btn1.Size = UDim2.new(0.9, 0, 0, 35)
btn1.Position = UDim2.new(0.05, 0, 0.2, 0)
btn1.Text = "Botão 1 (Manual)"
btn1.BackgroundColor3 = Color3.fromRGB(60, 60, 60)
btn1.TextColor3 = Color3.fromRGB(255, 255, 255)
btn1.Parent = frame
btn1.MouseButton1Click:Connect(executarBotao1)
local btn2 = Instance.new("TextButton")
btn2.Size = UDim2.new(0.9, 0, 0, 35)
btn2.Position = UDim2.new(0.05, 0, 0.4, 0)
btn2.Text = "Botão 2 (Manual)"
btn2.BackgroundColor3 = Color3.fromRGB(60, 60, 60)
btn2.TextColor3 = Color3.fromRGB(255, 255, 255)
btn2.Parent = frame
btn2.MouseButton1Click:Connect(executarBotao2)
local autoFarmAtivo = false
local connection
local btnAuto = Instance.new("TextButton")
btnAuto.Size = UDim2.new(0.9, 0, 0, 50)
btnAuto.Position = UDim2.new(0.05, 0, 0.65, 0)
btnAuto.Text = "AUTO FARM: OFF"
btnAuto.BackgroundColor3 = Color3.fromRGB(150, 0, 0)
btnAuto.TextColor3 = Color3.fromRGB(255, 255, 255)
btnAuto.Font = Enum.Font.SourceSansBold
btnAuto.TextSize = 18
btnAuto.Parent = frame
btnAuto.MouseButton1Click:Connect(function()
autoFarmAtivo = not autoFarmAtivo
if autoFarmAtivo then
btnAuto.Text = "AUTO FARM: ON"
btnAuto.BackgroundColor3 = Color3.fromRGB(0, 150, 0)
connection = game:GetService("RunService").RenderStepped:Connect(function()
if autoFarmAtivo then
executarBotao1()
executarBotao2()
else
if connection then connection:Disconnect() end
end
end)
else
btnAuto.Text = "AUTO FARM: OFF"
btnAuto.BackgroundColor3 = Color3.fromRGB(150, 0, 0)
if connection then connection:Disconnect() end
end
end)
Comments
ai ahh code is sad