Midnight Chasers

warn("Anti afk running")

game:GetService("Players").LocalPlayer.Idled:connect(function()

    warn("Anti afk ran")

    game:GetService("VirtualUser"):CaptureController()

    game:GetService("VirtualUser"):ClickButton2(Vector2.new())

end)


local guiScreen = Instance.new("ScreenGui")

guiScreen.Name = "TopGUI"

guiScreen.DisplayOrder = 1000

guiScreen.Parent = game.CoreGui


local guiFrame = Instance.new("Frame")

guiFrame.Size = UDim2.new(0, 200, 0, 150)

guiFrame.Position = UDim2.new(0, 10, 0, 10)

guiFrame.BackgroundTransparency = 0.5

guiFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)

guiFrame.BorderSizePixel = 0

guiFrame.Parent = guiScreen



local autoFarmToggle = Instance.new("TextButton")

autoFarmToggle.Size = UDim2.new(0, 180, 0, 30)

autoFarmToggle.Position = UDim2.new(0.5, -90, 0, 10)

autoFarmToggle.Text = "Auto Farm: OFF"

autoFarmToggle.TextColor3 = Color3.fromRGB(255, 255, 255)

autoFarmToggle.BackgroundTransparency = 0.3

autoFarmToggle.BackgroundColor3 = Color3.fromRGB(0, 0, 0)

autoFarmToggle.Parent = guiFrame


local autoFarmActive = false


autoFarmToggle.MouseButton1Click:Connect(function()

    autoFarmActive = not autoFarmActive

    if autoFarmActive then

        autoFarmToggle.Text = "Auto Farm: ON"

        -- Implement the Auto Farm functionality here

        spawn(function()

            while autoFarmActive do

                for i, v in pairs(workspace:GetChildren()) do

                    if v.ClassName == "Model" and v:FindFirstChild("Container") or v.Name == "PortCraneOversized" then

                        v:Destroy()

                    end

                end

                wait(1)

            end

        end)

        spawn(function()

            while autoFarmActive do

                local hum = game.Players.LocalPlayer.Character.Humanoid

                local car = hum.SeatPart.Parent

                car.PrimaryPart = car.Body:FindFirstChild("#Weight")

                if not getfenv().first then

                    if workspace.Workspace:FindFirstChild("Buildings") then

                        workspace.Workspace.Buildings:Destroy()

                    end

                    car:PivotTo(CFrame.new(Vector3.new(-7594.541015625, -3.513848304748535, 5130.95263671875), Vector3.new(-6205.29833984375, -3.5030133724212646, 8219.853515625)))

                    wait(0.1)

                end

                car.PrimaryPart.Velocity = Vector3.new(0, 0, 0)

                getfenv().first = true

                local location = Vector3.new(-6205.29833984375, 100, 8219.853515625)

                repeat

                    task.wait()

                    mathlock = 550

                    car.PrimaryPart.Velocity = car.PrimaryPart.CFrame.LookVector * mathlock

                    car:PivotTo(CFrame.new(car.PrimaryPart.Position, location))

                until game.Players.LocalPlayer:DistanceFromCharacter(location) < 50 or not autoFarmActive

                car.PrimaryPart.Velocity = Vector3.new(0, 0, 0)

                location = Vector3.new(-7594.541015625, 100, 5130.95263671875)

                repeat

                    task.wait()

                    mathlock = 550

                    car.PrimaryPart.Velocity = car.PrimaryPart.CFrame.LookVector * mathlock

                    car:PivotTo(CFrame.new(car.PrimaryPart.Position, location))

                until game.Players.LocalPlayer:DistanceFromCharacter(location) < 50 or not autoFarmActive

                car.PrimaryPart.Velocity = Vector3.new(0, 0, 0)

            end

        end)

    else

        autoFarmToggle.Text = "Auto Farm: OFF"

        -- Stop Auto Farm functionality here

    end

end)


-- Add Toggle for Black Screen

local blackScreenToggle = Instance.new("TextButton")

blackScreenToggle.Size = UDim2.new(0, 180, 0, 30)

blackScreenToggle.Position = UDim2.new(0.5, -90, 0, 50)

blackScreenToggle.Text = "Black Screen: OFF"

blackScreenToggle.TextColor3 = Color3.fromRGB(255, 255, 255)

blackScreenToggle.BackgroundTransparency = 0.3

blackScreenToggle.BackgroundColor3 = Color3.fromRGB(0, 0, 0)

blackScreenToggle.Parent = guiFrame


blackScreenToggle.MouseButton1Click:Connect(function()

    if blackScreenToggle.Text == "Black Screen: OFF" then

        -- Create Black Screen

        local blackScreen = Instance.new("ScreenGui")

        blackScreen.Name = "BlackScreen"

        blackScreen.DisplayOrder = -1000 

        blackScreen.Parent = game.CoreGui


        local blackFrame = Instance.new("Frame")

        blackFrame.Size = UDim2.new(1, 0, 1, 0)

        blackFrame.BackgroundColor3 = Color3.new(0, 0, 0)

        blackFrame.BorderSizePixel = 0

        blackFrame.Parent = blackScreen


        blackScreenToggle.Text = "Black Screen: ON"

    else

        -- Remove Black Screen

        local blackScreen = game.CoreGui:FindFirstChild("BlackScreen")

        if blackScreen then

            blackScreen:Destroy()

        end

        blackScreenToggle.Text = "Black Screen: OFF"

    end

end)