auto farm
Key Required

auto farm

Build A Boat For TreasureRedfoxRedfox 2.8K views 7 executesUpdated May 1, 2025
2.5/ 5(2 votes)
1150% Positive
Lua Script•311 lines (11270 chars)
local mt = getrawmetatable(game)
setreadonly(mt, false)
local oldNamecall = mt.__namecall
mt.__namecall = newcclosure(function(self, ...)
    if getnamecallmethod() == "Kick" then
        return warn("[Bypass] Kick attempt blocked")
    end
    return oldNamecall(self, ...)
end)

game.Players.LocalPlayer.OnTeleport:Connect(function(State)
    if State == Enum.TeleportState.Started then
        syn.queue_on_teleport('loadstring(game:HttpGet("https://raw.githubusercontent.com/Syr0nix/UI-lib-NEW/refs/heads/main/WL"))()')
    end
end)

local UILibrary = loadstring(game:HttpGet("https://raw.githubusercontent.com/Syr0nix/UI-lib-NEW/refs/heads/main/WL"))()
local GUI = UILibrary.Main("RedFox UI", "F5")

local Tab1 = GUI.NewTab("Main Tab")
local Tab2 = GUI.NewTab("AutoFarm")
local Tab3 = GUI.NewTab("Player")
local Tab4 = GUI.NewTab("External Scripts")

local Section1 = Tab1.NewSection("Main Section")

Section1.NewButton("Rejoin Game", function()
    game:GetService("TeleportService"):TeleportToPlaceInstance(game.PlaceId, game.JobId, game.Players.LocalPlayer)
end)

local Section2 = Tab2.NewSection("Auto Farms")
local teleporting = false
local teleportLoop
local TweenService = game:GetService("TweenService")

local function smoothTP(part)
    local hrp = game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart")
    local goal = part.CFrame + Vector3.new(0, 10, 0)
    local tween = TweenService:Create(hrp, TweenInfo.new(0.5, Enum.EasingStyle.Sine), {CFrame = goal})
    tween:Play()
    tween.Completed:Wait()
end

local function holdInAir(hrp)
	local bp = Instance.new("BodyPosition")
	bp.MaxForce = Vector3.new(9e9, 9e9, 9e9)
	bp.P = 12500
	bp.D = 1000
	bp.Position = hrp.Position
	bp.Parent = hrp
	return bp
end

Section2.NewToggle("Auto Gold Farm", function(toggled)
    teleporting = toggled

    if teleporting then
        teleportLoop = task.spawn(function()
            local Players = game:GetService("Players")
            local LocalPlayer = Players.LocalPlayer
            local Stages = workspace:WaitForChild("BoatStages"):WaitForChild("NormalStages")
            local EndStage = Stages:WaitForChild("TheEnd")
            local GoldenChest = EndStage:WaitForChild("GoldenChest"):FindFirstChild("Trigger")

            while teleporting do
                local char = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait()
                local hrp = char:WaitForChild("HumanoidRootPart")

                for _, p in ipairs(char:GetDescendants()) do
                    if p:IsA("BasePart") then p.CanCollide = false end
                end

                for _, stage in ipairs(Stages:GetChildren()) do
                    if not teleporting then break end
                    for _, part in ipairs(stage:GetDescendants()) do
                        if part:IsA("BasePart") then
                            hrp.CFrame = part.CFrame + Vector3.new(0, 8, 0)
                            task.wait(0.4)
                            break
                        end
                    end
                    task.wait(0.5)
                end
                if teleporting and GoldenChest then
                    for y = 60, 5, -5 do
                        hrp = LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("HumanoidRootPart")
                        if hrp then
                            hrp.CFrame = GoldenChest.CFrame + Vector3.new(0, y, 0)
                            task.wait(0.05)
                        end
                    end
                end
                task.wait(15)
                LocalPlayer.Character:BreakJoints()
				task.wait(2)
			pcall(function()
				workspace:WaitForChild("ClaimRiverResultsGold"):FireServer()
					end)
						task.wait(.3)
                repeat task.wait() until LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("HumanoidRootPart")
                task.wait(5)
            end
        end)
    else
        if teleportLoop then task.cancel(teleportLoop) end
    end
end, false)

local Section3 = Tab3.NewSection("Player Mods")
local FlySpeed = 3
local FlyConn, FlyBP, FlyBG = nil, nil, nil
local UserInputService, RunService = game:GetService("UserInputService"), game:GetService("RunService")
local defaultWalkSpeed = 16
local defaultJumpPower = 50
local customWalkSpeed = 50
local customJumpPower = 100
local walkSpeedEnabled = false
local jumpPowerEnabled = false
local Players = game:GetService("Players")

local function refreshPlayerList()
    local list = {}
    for _, p in ipairs(Players:GetPlayers()) do
        if p ~= Players.LocalPlayer then
            table.insert(list, p.Name)
        end
    end
    return list
end

local function stopFly()
    if FlyConn then FlyConn:Disconnect() end
    if FlyBP then FlyBP:Destroy() end
    if FlyBG then FlyBG:Destroy() end
    local hum = game.Players.LocalPlayer.Character and game.Players.LocalPlayer.Character:FindFirstChildOfClass("Humanoid")
    if hum then hum.PlatformStand = false end
end

Section3.NewToggle("Anti-AFK", "Prevents idle kick by simulating input", false, function(state)
    if state then
        if _G.AntiAFKConnection then _G.AntiAFKConnection:Disconnect() end
        _G.AntiAFKConnection = game:GetService("Players").LocalPlayer.Idled:Connect(function()
            local vu = game:GetService("VirtualUser")
            vu:Button2Down(Vector2.new(0,0), workspace.CurrentCamera.CFrame)
            task.wait(1)
            vu:Button2Up(Vector2.new(0,0), workspace.CurrentCamera.CFrame)
        end)
        print("[Anti-AFK] Enabled")
    else
        if _G.AntiAFKConnection then
            _G.AntiAFKConnection:Disconnect()
            _G.AntiAFKConnection = nil
        end
        print("[Anti-AFK] Disabled")
    end
end)


Section3.NewToggle("Fly", function(toggled)
    stopFly()
    if not toggled then return end

    local player = game.Players.LocalPlayer
    local char = player.Character or player.CharacterAdded:Wait()
    local hrp = char:WaitForChild("HumanoidRootPart")
    local hum = char:FindFirstChildOfClass("Humanoid")
    local cam = workspace.CurrentCamera

    hum.PlatformStand = true

    FlyBP = Instance.new("BodyPosition")
    FlyBP.MaxForce = Vector3.new(9e9, 9e9, 9e9)
    FlyBP.P = 12500
    FlyBP.D = 1000
    FlyBP.Position = hrp.Position
    FlyBP.Parent = hrp

    FlyBG = Instance.new("BodyGyro")
    FlyBG.MaxTorque = Vector3.new(9e9, 9e9, 9e9)
    FlyBG.P = 9e4
    FlyBG.CFrame = hrp.CFrame
    FlyBG.Parent = hrp

    FlyConn = RunService.RenderStepped:Connect(function()
        local move = Vector3.zero
        if UserInputService:IsKeyDown(Enum.KeyCode.W) then move += cam.CFrame.LookVector end
        if UserInputService:IsKeyDown(Enum.KeyCode.S) then move -= cam.CFrame.LookVector end
        if UserInputService:IsKeyDown(Enum.KeyCode.A) then move -= cam.CFrame.RightVector end
        if UserInputService:IsKeyDown(Enum.KeyCode.D) then move += cam.CFrame.RightVector end
        if UserInputService:IsKeyDown(Enum.KeyCode.Space) then move += cam.CFrame.UpVector end
        if UserInputService:IsKeyDown(Enum.KeyCode.LeftShift) then move -= cam.CFrame.UpVector end

        local target = hrp.Position + (move.Magnitude > 0 and move.Unit * FlySpeed or Vector3.zero)
        FlyBP.Position = target
        FlyBG.CFrame = cam.CFrame
    end)
end, false)


Section3.NewSlider("Fly Speed", 1, 100, false, function(val)
    FlySpeed = val
end, 3)

Section3.NewToggle("Custom WalkSpeed", function(toggled)
    walkSpeedEnabled = toggled
    local hum = game.Players.LocalPlayer.Character and game.Players.LocalPlayer.Character:FindFirstChildOfClass("Humanoid")
    if hum then
        hum.WalkSpeed = toggled and customWalkSpeed or defaultWalkSpeed
    end
end, false)

Section3.NewSlider("WalkSpeed Value", 10, 150, false, function(val)
    customWalkSpeed = val
    if walkSpeedEnabled then
        local hum = game.Players.LocalPlayer.Character and game.Players.LocalPlayer.Character:FindFirstChildOfClass("Humanoid")
        if hum then
            hum.WalkSpeed = val
        end
    end
end, customWalkSpeed)

Section3.NewToggle("Custom JumpPower", function(toggled)
    jumpPowerEnabled = toggled
    local hum = game.Players.LocalPlayer.Character and game.Players.LocalPlayer.Character:FindFirstChildOfClass("Humanoid")
    if hum then
        hum.JumpPower = toggled and customJumpPower or defaultJumpPower
    end
end, false)

Section3.NewSlider("JumpPower Value", 20, 200, false, function(val)
    customJumpPower = val
    if jumpPowerEnabled then
        local hum = game.Players.LocalPlayer.Character and game.Players.LocalPlayer.Character:FindFirstChildOfClass("Humanoid")
        if hum then
            hum.JumpPower = val
        end
    end
end, customJumpPower)

game.Players.LocalPlayer.CharacterAdded:Connect(function(char)
    local hum = char:WaitForChild("Humanoid")
    hum.WalkSpeed = walkSpeedEnabled and customWalkSpeed or defaultWalkSpeed
    hum.JumpPower = jumpPowerEnabled and customJumpPower or defaultJumpPower
end)

local Section4 = Tab4.NewSection("Admins")

Section4.NewButton("Fates Admin", function()
	loadstring(game:HttpGet("https://raw.githubusercontent.com/fatesc/fates-admin/main/main.lua"))();
end)

Section4.NewButton("Inf Yield", function()
	loadstring(game:HttpGet("https://raw.githubusercontent.com/edgeiy/infiniteyield/master/source"))();
end)

local Section4 = Tab4.NewSection("Tools")
Section4.NewButton("Dex", function()
	local Dex = game:GetObjects('rbxassetid://9553291002')[1]
    Dex.Name=math.random()
    if syn then syn.protect_gui(Dex) end
    Dex.Parent=game:GetService'CoreGui'
    local function Load(Obj, Url)
        local function GiveOwnGlobals(Func, Script)
            local Fenv = {}
            local RealFenv = {script = Script}
            local FenvMt = {}
            FenvMt.__index = function(a,b)
                if RealFenv[b] == nil then
                    return getfenv()[b]
                else
                    return RealFenv[b]
                end
            end
            FenvMt.__newindex = function(a, b, c)
                if RealFenv[b] == nil then
                    getfenv()[b] = c
                else
                    RealFenv[b] = c
                end
            end
            setmetatable(Fenv, FenvMt)
            setfenv(Func, Fenv)
            return Func
        end
        local function LoadScripts(Script)
            if Script.ClassName == "Script" or Script.ClassName == "LocalScript" then
                task.spawn(function()
                    GiveOwnGlobals(loadstring(Script.Source, "=" .. Script:GetFullName()), Script)()
                end)
            end
            for i,v in pairs(Script:GetChildren()) do
                LoadScripts(v)
            end
        end
        LoadScripts(Obj)
    end
    Load(Dex)
end)

Section4.NewButton("Remote Spy", function()
	loadstring(game:HttpGet("https://raw.githubusercontent.com/exxtremestuffs/SimpleSpySource/refs/heads/master/SimpleSpy.lua"))();
end)

Section4.NewButton("Server Browser", function()
loadstring(game:HttpGet("https://raw.githubusercontent.com/Syr0nix/Server-Browser/refs/heads/main/LUAU", true))();
end)

Section4.NewLabel("⚠️ Use at your own risk!")

GUI.Loader()
GUI.Nofitication("Welcome to RedFox UI!")

Features & Information

Auto farm Speed jump power rejoin External Scripts
#Build A Boat For Treasure#Build A Boat

Community Comments (3)

wackywackyMay 1, 2025

Kinda bad

RedfoxRedfoxMay 2, 2025

It works doesn’t it

RedfoxRedfoxMay 2, 2025

I can make it smother i was just trying to make something in 6hours

More Scripts for Build A Boat For Treasure