auto farm
Key Required

auto farm

Freeze for UGC 🧊piquapiqua 897 views 11.7K executesUpdated Aug 27, 2026
5.0/ 5(1 votes)
10100% Positive
Lua Script•256 lines (8725 chars)
local Players = game:GetService("Players")
local TweenService = game:GetService("TweenService")
local UserInputService = game:GetService("UserInputService")
local RunService = game:GetService("RunService")
local Workspace = game:GetService("Workspace")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local TeleportService = game:GetService("TeleportService")

local localPlayer = Players.LocalPlayer

-- 1. GUI FRAMEWORK
local ScreenGui = Instance.new("ScreenGui")
ScreenGui.Name = "MapsLoverChestHub"
ScreenGui.ResetOnSpawn = false
ScreenGui.Parent = localPlayer:WaitForChild("PlayerGui")

local MainFrame = Instance.new("Frame")
MainFrame.Size = UDim2.new(0, 240, 0, 235)
MainFrame.Position = UDim2.new(0.5, -120, 0.4, -117)
MainFrame.BackgroundColor3 = Color3.fromRGB(18, 18, 22)
MainFrame.BorderSizePixel = 0
MainFrame.Active = true
MainFrame.Parent = ScreenGui

local MainCorner = Instance.new("UICorner")
MainCorner.CornerRadius = UDim.new(0, 8)
MainCorner.Parent = MainFrame

-- RAINBOW HEADER
local TitleBar = Instance.new("TextLabel")
TitleBar.Size = UDim2.new(1, 0, 0, 30)
TitleBar.Text = "fuckshitfukshit"
TitleBar.Font = Enum.Font.SourceSansBold
TitleBar.TextSize = 15
TitleBar.TextColor3 = Color3.fromRGB(255, 255, 255)
TitleBar.BackgroundColor3 = Color3.fromRGB(28, 28, 34)
TitleBar.BorderSizePixel = 0
TitleBar.Parent = MainFrame

local TitleCorner = Instance.new("UICorner")
TitleCorner.CornerRadius = UDim.new(0, 8)
TitleCorner.Parent = TitleBar

-- SUBHEADER UNDERNEATH
local SubHeader = Instance.new("TextLabel")
SubHeader.Size = UDim2.new(1, 0, 0, 20)
SubHeader.Position = UDim2.new(0, 0, 0, 30)
SubHeader.Text = "Freeze For UGC🧊 Script"
SubHeader.Font = Enum.Font.SourceSansItalic
SubHeader.TextSize = 12
SubHeader.TextColor3 = Color3.fromRGB(160, 200, 255)
SubHeader.BackgroundTransparency = 1
SubHeader.Parent = MainFrame

-- 2. MODE TOGGLE BUTTON
local ModeButton = Instance.new("TextButton")
ModeButton.Size = UDim2.new(0.88, 0, 0, 30)
ModeButton.Position = UDim2.new(0.06, 0, 0, 62)
ModeButton.Text = "Mode: Instant TP (Risky)"
ModeButton.Font = Enum.Font.SourceSans
ModeButton.TextSize = 12
ModeButton.TextColor3 = Color3.fromRGB(200, 200, 200)
ModeButton.BackgroundColor3 = Color3.fromRGB(70, 30, 30)
ModeButton.BorderSizePixel = 0
ModeButton.Parent = MainFrame

local ModeCorner = Instance.new("UICorner")
ModeCorner.CornerRadius = UDim.new(0, 5)
ModeCorner.Parent = ModeButton

-- 3. AUTO TP TOGGLE BUTTON (Default ON)
local AutoButton = Instance.new("TextButton")
AutoButton.Size = UDim2.new(0.88, 0, 0, 35)
AutoButton.Position = UDim2.new(0.06, 0, 0, 102)
AutoButton.Text = "Auto TP: ON"
AutoButton.Font = Enum.Font.SourceSansBold
AutoButton.TextSize = 14
AutoButton.TextColor3 = Color3.fromRGB(255, 255, 255)
AutoButton.BackgroundColor3 = Color3.fromRGB(50, 160, 50)
AutoButton.BorderSizePixel = 0
AutoButton.Parent = MainFrame

local AutoCorner = Instance.new("UICorner")
AutoCorner.CornerRadius = UDim.new(0, 6)
AutoCorner.Parent = AutoButton

-- 4. MANUAL ACTION BUTTON
local TpButton = Instance.new("TextButton")
TpButton.Size = UDim2.new(0.88, 0, 0, 40)
TpButton.Position = UDim2.new(0.06, 0, 0, 147)
TpButton.Text = "Teleport to Jump Rope Chest"
TpButton.Font = Enum.Font.SourceSansBold
TpButton.TextSize = 14
TpButton.TextColor3 = Color3.fromRGB(255, 255, 255)
TpButton.BackgroundColor3 = Color3.fromRGB(0, 130, 200)
TpButton.BorderSizePixel = 0
TpButton.Parent = MainFrame

local TpCorner = Instance.new("UICorner")
TpCorner.CornerRadius = UDim.new(0, 6)
TpCorner.Parent = TpButton

-- STATUS DISPLAY
local StatusLabel = Instance.new("TextLabel")
StatusLabel.Size = UDim2.new(0.88, 0, 0, 25)
StatusLabel.Position = UDim2.new(0.06, 0, 0, 195)
StatusLabel.Text = "Initializing Loop..."
StatusLabel.Font = Enum.Font.SourceSansItalic
StatusLabel.TextSize = 12
StatusLabel.TextColor3 = Color3.fromRGB(150, 150, 150)
StatusLabel.BackgroundTransparency = 1
StatusLabel.Parent = MainFrame

-- 5. FUNCTIONAL LOGIC
local useSmoothTween = false -- Default Instant TP (Risky)
local autoTpActive = true    -- Default Auto TP ON
local postClaimCooldown = 2  -- Pause before rejoin to save state

-- Dynamic Rainbow Cycle Thread
task.spawn(function()
    local hue = 0
    while true do
        hue = (hue + 1) % 360
        TitleBar.TextColor3 = Color3.fromHSV(hue / 360, 0.75, 1)
        RunService.Heartbeat:Wait()
    end
end)

-- Core Teleport, Claim, and Rejoin Sequence
local function teleportAndClaim()
    local character = localPlayer.Character or localPlayer.CharacterAdded:Wait()
    local rootPart = character:WaitForChild("HumanoidRootPart", 5)
    if not rootPart then return false end
    
    local minigameFolder = Workspace:WaitForChild("Jump Rope Minigame", 5)
    local win2Folder = minigameFolder and minigameFolder:WaitForChild("Win2", 5)
    local targetChest = win2Folder and win2Folder:WaitForChild("Chest", 5)
    
    if targetChest and targetChest:IsA("BasePart") then
        local targetCFrame = targetChest.CFrame * CFrame.new(0, 3, 0)
        
        if useSmoothTween then
            local distance = (rootPart.Position - targetChest.Position).Magnitude
            local duration = math.clamp(distance / 45, 0.5, 5)
            local tweenInfo = TweenInfo.new(duration, Enum.EasingStyle.Linear, Enum.EasingDirection.Out)
            local tween = TweenService:Create(rootPart, tweenInfo, {CFrame = targetCFrame})
            tween:Play()
            tween.Completed:Wait()
        else
            -- Instant Teleport
            rootPart.CFrame = targetCFrame
        end

        task.wait(0.5)

        StatusLabel.Text = "Checking Remote..."
        local chestEvent = ReplicatedStorage:WaitForChild("ChestClaimNormal", 5)
        
        if chestEvent then
            StatusLabel.Text = "Firing Remote..."
            local remoteExecuted, _ = pcall(function()
                chestEvent:FireServer()
            end)

            if remoteExecuted then
                StatusLabel.Text = "Claimed! Rejoining..."
                task.wait(postClaimCooldown)
            else
                StatusLabel.Text = "Remote Failed!"
                task.wait(1)
                return false
            end
        else
            StatusLabel.Text = "Remote Not Found!"
            task.wait(1)
            return false
        end

        -- Teleport / Rejoin server automatically
        TeleportService:Teleport(game.PlaceId, localPlayer)
        return true
    else
        return false
    end
end

-- Toggle Mode Button
ModeButton.MouseButton1Click:Connect(function()
    useSmoothTween = not useSmoothTween
    if useSmoothTween then
        ModeButton.Text = "Mode: Smooth Tween (Safe)"
        ModeButton.BackgroundColor3 = Color3.fromRGB(35, 35, 42)
    else
        ModeButton.Text = "Mode: Instant TP (Risky)"
        ModeButton.BackgroundColor3 = Color3.fromRGB(70, 30, 30)
    end
end)

-- Manual Trigger Button
TpButton.MouseButton1Click:Connect(function()
    teleportAndClaim()
end)

-- Auto TP Toggle Button
AutoButton.MouseButton1Click:Connect(function()
    autoTpActive = not autoTpActive
    if autoTpActive then
        AutoButton.Text = "Auto TP: ON"
        AutoButton.BackgroundColor3 = Color3.fromRGB(50, 160, 50)
    else
        AutoButton.Text = "Auto TP: OFF"
        AutoButton.BackgroundColor3 = Color3.fromRGB(180, 50, 50)
    end
end)

-- Auto Loop Thread (Runs automatically on execute)
task.spawn(function()
    while true do
        task.wait(1)
        if autoTpActive then
            StatusLabel.Text = "Auto-Teleporting..."
            local success = teleportAndClaim()
            if not success then
                StatusLabel.Text = "Retrying in 2s..."
                task.wait(2)
            end
        end
    end
end)

-- 6. INTERFACE DRAG HANDLING
local dragging, dragStartMouse, startPosFrame
TitleBar.InputBegan:Connect(function(input)
    if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
        dragging = true
        dragStartMouse = UserInputService:GetMouseLocation()
        startPosFrame = MainFrame.Position
    end
end)

UserInputService.InputEnded:Connect(function(input)
    if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
        dragging = false
    end
end)

RunService.RenderStepped:Connect(function()
    if dragging then
        local currentMouse = UserInputService:GetMouseLocation()
        local delta = currentMouse - dragStartMouse
        MainFrame.Position = UDim2.new(
            startPosFrame.X.Scale, startPosFrame.X.Offset + delta.X,
            startPosFrame.Y.Scale, startPosFrame.Y.Offset + delta.Y
        )
    end
end)

Features & Information

keyless and open source ps. i dont reccomend farming this ass game cus it wont actually give u the damn ugc it will give u a 1% chance to get it in a spin wheel (put in autoexec executor)
#farm#ugc#fyp

Community Comments (0)

No comments yet for this script.

More Scripts for Freeze for UGC 🧊