Auto farm
Key Required Patched

Auto farm

[🔱ATLANTIS] Drain the LakeKelspikescriptsKelspikescripts 613 views 76 executesUpdated Jul 23, 2026
Unrated
00
Lua Script•110 lines (3636 chars)
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local VerdantRemotes = ReplicatedStorage:WaitForChild("VerdantRemotes")

local VDT_Bucket_Used = VerdantRemotes:WaitForChild("VDT_Bucket.Used")
local VDT_Bucket_Poured = VerdantRemotes:WaitForChild("VDT_Bucket.Poured")
local VDT_Tokens_Take = VerdantRemotes:WaitForChild("VDT_Tokens.Take")

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

local function getProximityPrompt()
    local checkpoint = workspace:WaitForChild("Scripted"):WaitForChild("CheckpointParts"):WaitForChild("1")
    local drain = checkpoint:WaitForChild("Drain")
    local scripted = drain:WaitForChild("Scripted")
    local proximityPosition = scripted:WaitForChild("ProximityPosition")
    local proximityPrompt = proximityPosition:WaitForChild("ProximityPrompt")
    return proximityPrompt
end

local autoFarmOn = false

-- GUI oluşturma
local screenGui = Instance.new("ScreenGui")
screenGui.Name = "AutoFarmGui"
screenGui.Parent = player:WaitForChild("PlayerGui")

local toggleButton = Instance.new("TextButton")
toggleButton.Size = UDim2.new(0, 150, 0, 50)
toggleButton.Position = UDim2.new(0, 20, 0, 20)
toggleButton.BackgroundColor3 = Color3.fromRGB(0, 170, 0)
toggleButton.TextColor3 = Color3.new(1,1,1)
toggleButton.Font = Enum.Font.SourceSansBold
toggleButton.TextSize = 24
toggleButton.Text = "Auto Farm: OFF"
toggleButton.Parent = screenGui

-- Sürükleme için değişkenler
local dragging = false
local dragInput, mousePos, framePos

local function updatePosition(input)
    local delta = input.Position - mousePos
    toggleButton.Position = UDim2.new(
        0,
        math.clamp(framePos.X.Offset + delta.X, 0, workspace.CurrentCamera.ViewportSize.X - toggleButton.AbsoluteSize.X),
        0,
        math.clamp(framePos.Y.Offset + delta.Y, 0, workspace.CurrentCamera.ViewportSize.Y - toggleButton.AbsoluteSize.Y)
    )
end

toggleButton.InputBegan:Connect(function(input)
    if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
        dragging = true
        mousePos = input.Position
        framePos = toggleButton.Position

        input.Changed:Connect(function()
            if input.UserInputState == Enum.UserInputState.End then
                dragging = false
            end
        end)
    end
end)

toggleButton.InputChanged:Connect(function(input)
    if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
        dragInput = input
    end
end)

game:GetService("UserInputService").InputChanged:Connect(function(input)
    if input == dragInput and dragging then
        updatePosition(input)
    end
end)

-- Döngü fonksiyonu
local function autoFarmLoop()
    while autoFarmOn do
        -- VDT_Bucket.Used event 5 defa, 0.5 saniye arayla
        for i = 1, 5 do
            VDT_Bucket_Used:FireServer()
            wait(0.5)
        end

        -- VDT_Bucket.Poured event 1 defa
        local args = {getProximityPrompt()}
        VDT_Bucket_Poured:FireServer(unpack(args))

        -- 3 saniye bekle
        wait(3)

        -- VDT_Tokens.Take event 1 defa
        VDT_Tokens_Take:FireServer(unpack(args))

        wait(0.1)
    end
end

toggleButton.MouseButton1Click:Connect(function()
    autoFarmOn = not autoFarmOn
    if autoFarmOn then
        toggleButton.Text = "Auto Farm: ON"
        toggleButton.BackgroundColor3 = Color3.fromRGB(0, 255, 0)
        spawn(autoFarmLoop)
    else
        toggleButton.Text = "Auto Farm: OFF"
        toggleButton.BackgroundColor3 = Color3.fromRGB(170, 0, 0)
    end
end)

Features & Information

Auto farm Oto bucket filling Oto sell bucket Oto collect coins

Community Comments (0)

No comments yet for this script.

More Scripts for [🔱ATLANTIS] Drain the Lake