
Keyless

local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local TweenService = game:GetService("TweenService")
local UserInputService = game:GetService("UserInputService")
local CoreGui = game:GetService("CoreGui")
local client = Players.LocalPlayer
local KEYBIND = Enum.KeyCode.M
local gui = Instance.new("ScreenGui", CoreGui)
gui.Name = "AkifAutoFarm_Final"
gui.IgnoreGuiInset = true
gui.ResetOnSpawn = false
local window = Instance.new("Frame", gui)
-- Hündürlüyü 3 düymə üçün artırdıq (200 -> 250)
window.Size = UDim2.fromOffset(280, 250)
window.Position = UDim2.new(0.5, -140, 0.5, -125)
window.BackgroundColor3 = Color3.fromRGB(24, 25, 26)
window.BorderSizePixel = 0
window.Active = true
window.Draggable = true
window.Visible = false
local windowCanvas = Instance.new("CanvasGroup", window)
local corner = Instance.new("UICorner"); corner.CornerRadius = UDim.new(0, 8); corner.Parent = window
local stroke = Instance.new("UIStroke"); stroke.Color = Color3.fromRGB(10, 11, 12); stroke.Thickness = 1; stroke.Parent = window
local pad = Instance.new("UIPadding"); pad.PaddingTop=UDim.new(0,12); pad.PaddingLeft=UDim.new(0,12); pad.PaddingRight=UDim.new(0,12); pad.PaddingBottom=UDim.new(0,12); pad.Parent = window
local titleBar = Instance.new("Frame", window)
titleBar.Size = UDim2.new(1, 0, 0, 32); titleBar.BackgroundTransparency = 1
local title = Instance.new("TextLabel", titleBar)
title.Size = UDim2.new(1, 0, 1, 0); title.BackgroundTransparency = 1; title.TextXAlignment = Enum.TextXAlignment.Left; title.Font = Enum.Font.GothamBold; title.TextSize = 16; title.TextColor3 = Color3.fromRGB(255, 255, 255); title.Text = "Auto Farm"
local subtitle = Instance.new("TextLabel", titleBar)
subtitle.Size = UDim2.new(1, 0, 1, 0); subtitle.BackgroundTransparency = 1; subtitle.TextXAlignment = Enum.TextXAlignment.Right; subtitle.Font = Enum.Font.Gotham; subtitle.TextSize = 14; subtitle.TextColor3 = Color3.fromRGB(150, 155, 170); subtitle.Text = "by AkifRzayev"
local list = Instance.new("UIListLayout", window)
list.Padding = UDim.new(0, 10)
list.SortOrder = Enum.SortOrder.LayoutOrder
local buttonHolder = Instance.new("Frame", window)
-- 3 düymə (42*3) + padding (10*2) = 126 + 20 = 146px hündürlük
buttonHolder.Size = UDim2.new(1, 0, 0, 146)
buttonHolder.BackgroundTransparency = 1
buttonHolder.LayoutOrder = 1
local listLayout = Instance.new("UIListLayout", buttonHolder)
listLayout.Padding = UDim.new(0, 10)
local function makeToggleButton(textOff, textOn)
local button = Instance.new("TextButton", buttonHolder)
button.Size = UDim2.new(1, 0, 0, 42)
button.BackgroundColor3 = Color3.fromRGB(38, 39, 41)
button.Font = Enum.Font.GothamSemibold
button.TextSize = 16
button.TextColor3 = Color3.fromRGB(230, 235, 245)
button.Text = textOff
local c = Instance.new("UICorner"); c.CornerRadius = UDim.new(0, 6); c.Parent = button
local s = Instance.new("UIStroke"); s.Color = Color3.fromRGB(20, 21, 22); s.Thickness = 1; s.Parent = button
local isOn = false
local changedEvent = Instance.new("BindableEvent")
local offColor = button.BackgroundColor3
local onColor = Color3.fromRGB(46, 204, 113)
local onColorHover = Color3.fromRGB(66, 224, 133)
button.MouseEnter:Connect(function() local hoverColor = isOn and onColorHover or Color3.fromRGB(55, 56, 58); TweenService:Create(button, TweenInfo.new(0.2), { BackgroundColor3 = hoverColor }):Play() end)
button.MouseLeave:Connect(function() local baseColor = isOn and onColor or offColor; TweenService:Create(button, TweenInfo.new(0.2), { BackgroundColor3 = baseColor }):Play() end)
button.MouseButton1Click:Connect(function()
isOn = not isOn
button.Text = isOn and textOn or textOff
local baseColor = isOn and onColor or offColor
TweenService:Create(button, TweenInfo.new(0.3), { BackgroundColor3 = baseColor }):Play()
changedEvent:Fire(isOn)
end)
return button, changedEvent.Event
end
local status = Instance.new("TextLabel", window)
status.Size = UDim2.new(1, 0, 0, 20)
status.BackgroundTransparency = 1; status.Font = Enum.Font.Gotham; status.TextSize = 14; status.TextColor3 = Color3.fromRGB(170, 175, 170); status.TextXAlignment = Enum.TextXAlignment.Left; status.Text = "Ready"; status.LayoutOrder = 2
-- Auto Poop üçün
local autoPoopActive = false
local poopThread = nil
local PoopEvent = ReplicatedStorage:WaitForChild("PoopEvent", 10)
-- Auto Charge üçün
local autoChargeActive = false
local chargeThread = nil
local PoopChargeStart = ReplicatedStorage:WaitForChild("PoopChargeStart", 10)
-- Auto Sell üçün (YENİ)
local autoSellActive = false
local sellThread = nil
local Sell_Inventory = ReplicatedStorage:WaitForChild("Sell_Inventory", 10)
-- Düymələri yaratmaq
local btnAutoPoop, autoPoopChanged = makeToggleButton("Auto Poop [OFF]", "Auto Poop [ON]")
local btnAutoCharge, autoChargeChanged = makeToggleButton("Auto Charge [OFF]", "Auto Charge [ON]")
local btnAutoSell, autoSellChanged = makeToggleButton("Auto Sell [OFF]", "Auto Sell [ON]") -- (YENİ)
-- Auto Poop funksiyası
if not PoopEvent then
status.Text = "Error: PoopEvent not found."
btnAutoPoop.Text = "POOP ERROR"
btnAutoPoop.BackgroundColor3 = Color3.fromRGB(192, 57, 43)
btnAutoPoop.AutoButtonColor = false
else
autoPoopChanged:Connect(function(isOn)
autoPoopActive = isOn
if isOn then
status.Text = "Auto Poop enabled."
poopThread = task.spawn(function()
while autoPoopActive do
pcall(function()
PoopEvent:FireServer(0, true)
end)
task.wait(0.01)
end
end)
else
status.Text = "Auto Poop disabled."
if poopThread then
task.cancel(poopThread)
poopThread = nil
end
end
end)
end
-- Auto Charge funksiyası
if not PoopChargeStart then
status.Text = "Error: PoopChargeStart not found."
btnAutoCharge.Text = "CHARGE ERROR"
btnAutoCharge.BackgroundColor3 = Color3.fromRGB(192, 57, 43)
btnAutoCharge.AutoButtonColor = false
else
autoChargeChanged:Connect(function(isOn)
autoChargeActive = isOn
if isOn then
status.Text = "Auto Charge enabled."
chargeThread = task.spawn(function()
while autoChargeActive do
pcall(function()
PoopChargeStart:FireServer()
end)
task.wait(2)
end
end)
else
status.Text = "Auto Charge disabled."
if chargeThread then
task.cancel(chargeThread)
chargeThread = nil
end
end
end)
end
-- Auto Sell funksiyası (YENİ)
if not Sell_Inventory then
status.Text = "Error: Sell_Inventory not found."
btnAutoSell.Text = "SELL ERROR"
btnAutoSell.BackgroundColor3 = Color3.fromRGB(192, 57, 43)
btnAutoSell.AutoButtonColor = false
else
autoSellChanged:Connect(function(isOn)
autoSellActive = isOn
if isOn then
status.Text = "Auto Sell enabled."
sellThread = task.spawn(function()
while autoSellActive do
pcall(function()
Sell_Inventory:FireServer()
end)
task.wait(0.01)
end
end)
else
status.Text = "Auto Sell disabled."
if sellThread then
task.cancel(sellThread)
sellThread = nil
end
end
end)
end
local function showNotification()
local notif = Instance.new("Frame", gui)
notif.Size = UDim2.fromOffset(250, 60); notif.Position = UDim2.new(1, 10, 0, 10); notif.BackgroundColor3 = Color3.fromRGB(30, 31, 32); notif.BorderSizePixel = 0
local c = Instance.new("UICorner"); c.CornerRadius = UDim.new(0, 6); c.Parent = notif
local s = Instance.new("UIStroke"); s.Color = Color3.fromRGB(15, 16, 17); s.Thickness = 1; s.Parent = notif
local l = Instance.new("TextLabel", notif)
l.Size = UDim2.new(1, -16, 1, -16); l.Position = UDim2.fromOffset(8, 8); l.BackgroundTransparency = 1; l.Font = Enum.Font.Gotham; l.TextColor3 = Color3.fromRGB(220, 220, 220); l.TextSize = 14
l.Text = "Press [ " .. KEYBIND.Name .. " ] to toggle the menu."
l.TextWrapped = true
TweenService:Create(notif, TweenInfo.new(0.5, Enum.EasingStyle.Quint, Enum.EasingDirection.Out), {Position = UDim2.new(1, -260, 0, 10)}):Play()
task.wait(5)
TweenService:Create(notif, TweenInfo.new(0.5, Enum.EasingStyle.Quint, Enum.EasingDirection.In), {Position = UDim2.new(1, 10, 0, 10)}):Play()
task.wait(0.5)
notif:Destroy()
end
UserInputService.InputBegan:Connect(function(input, gameProcessed)
if not gameProcessed and UserInputService:GetFocusedTextBox() == nil and input.KeyCode == KEYBIND then
window.Visible = not window.Visible
end
end)
local loadingContainer = Instance.new("Frame"); loadingContainer.Name = "LoadingContainer"; loadingContainer.Size = UDim2.new(1, 0, 1, 0); loadingContainer.BackgroundColor3 = Color3.fromRGB(0, 0, 0); loadingContainer.BackgroundTransparency = 1; loadingContainer.Parent = gui
local spinner = Instance.new("Frame"); spinner.Size = UDim2.fromOffset(60, 60); spinner.Position = UDim2.new(0.5, 0, 0.5, 0); spinner.AnchorPoint = Vector2.new(0.5, 0.5); spinner.BackgroundTransparency = 1; spinner.Visible = false; spinner.Parent = loadingContainer
local spinnerCanvas = Instance.new("CanvasGroup"); spinnerCanvas.Parent = spinner
local spinnerCorner = Instance.new("UICorner"); spinnerCorner.CornerRadius = UDim.new(1,0); spinnerCorner.Parent = spinner
local spinnerStroke = Instance.new("UIStroke"); spinnerStroke.Color = Color3.fromRGB(255, 255, 255); spinnerStroke.Thickness = 4; spinnerStroke.LineJoinMode = Enum.LineJoinMode.Round; spinnerStroke.Parent = spinner
local spinnerGradient = Instance.new("UIGradient"); spinnerGradient.Color = ColorSequence.new({ColorSequenceKeypoint.new(0, Color3.fromRGB(255, 255, 255)), ColorSequenceKeypoint.new(0.7, Color3.fromRGB(255, 255, 255)), ColorSequenceKeypoint.new(1, Color3.fromRGB(80, 80, 80))}); spinnerGradient.Rotation = 90; spinnerGradient.Parent = spinnerStroke
local creditsText = Instance.new("TextLabel"); creditsText.Size = UDim2.new(1, 0, 0, 50); creditsText.Position = UDim2.new(0.5, 0, 0.5, 0); creditsText.AnchorPoint = Vector2.new(0.5, 0.5); creditsText.BackgroundTransparency = 1; creditsText.Font = Enum.Font.GothamBold; creditsText.Text = "Made with love by AkifRzayev"; creditsText.TextColor3 = Color3.fromRGB(255, 255, 255); creditsText.TextSize = 24; creditsText.TextTransparency = 1; creditsText.Parent = loadingContainer
TweenService:Create(loadingContainer, TweenInfo.new(0.5), {BackgroundTransparency = 0.5}):Play()
task.wait(0.5)
spinner.Visible = true
local rotationTween = TweenService:Create(spinner, TweenInfo.new(1, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut, -1), { Rotation = 360 }); rotationTween:Play()
task.wait(2.5)
local tweenInfoFadeOut = TweenInfo.new(0.4)
TweenService:Create(spinnerCanvas, tweenInfoFadeOut, { GroupTransparency = 1 }):Play(); task.wait(0.4)
rotationTween:Cancel(); spinner:Destroy()
local tweenInfoFadeIn = TweenInfo.new(0.6)
TweenService:Create(creditsText, tweenInfoFadeIn, { TextTransparency = 0 }):Play();
task.wait(2)
TweenService:Create(creditsText, tweenInfoFadeOut, { TextTransparency = 1 }):Play()
TweenService:Create(loadingContainer, tweenInfoFadeOut, { BackgroundTransparency = 1 }):Play()
task.wait(0.5); loadingContainer:Destroy()
window.Visible = true
showNotification()
windowCanvas.GroupTransparency = 1
-- Pəncərənin başlanğıc və son mövqelərini yenilədik (yeni hündürlük: 250)
window.Position = UDim2.new(0.5, -140, 0.45, -125)
local posTween = TweenService:Create(window, TweenInfo.new(0.5, Enum.EasingStyle.Back, Enum.EasingDirection.Out), {Position = UDim2.new(0.5, -140, 0.5, -125)})
local transparencyTween = TweenService:Create(windowCanvas, TweenInfo.new(0.5, Enum.EasingStyle.Back, Enum.EasingDirection.Out), {GroupTransparency = 0})
posTween:Play()
transparencyTween:Play()



good