JustPaste
HomeCategoriesAboutDonateContactTerms of UsePrivacy Policy
JustPaste

Free online notepad — write and share instantly

Navigate

  • Home
  • Timeline
  • Categories

Info

  • About
  • Donate
  • Contact

Legal

  • Terms of Use
  • Privacy Policy

© 2026 JustPaste.app. All rights reserved.

Made with ♥ by JustPaste

Untitled Page | JustPaste.app
about 1 month ago10 views
👨‍💻Programming
-- ========================================
-- MEOW HUB - BLOX FRUITS
-- ========================================

print("🐱 MEOW HUB LOADED")

local Players = game:GetService("Players")
local LocalPlayer = Players.LocalPlayer
local Workspace = game:GetService("Workspace")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local CoreGui = game:GetService("CoreGui")
local VirtualUser = game:GetService("VirtualUser")

local Settings = {
    Farm = false,
    AutoMastery = false,
    FightingStyle = false,
    ItemsFarm = false,
    AutoBones = false,
    AutoCakePrince = false,
    DragonDojo = false,
    Prehistoric = false,
    MirageRaceV4 = false,
    SuKienBien = false,
    TapKich = false,
    CombatPVP = false,
    AutoSwitchSea = false
}

local Killed = 0
local Bones = 0
local QuestCooldown = 0
local FarmCooldown = 0

local Islands = {
    {name = "Jungle", level = 1, pos = Vector3.new(1000, 50, 1000)},
    {name = "Pirate Village", level = 15, pos = Vector3.new(-1000, 50, 1000)},
    {name = "Desert", level = 30, pos = Vector3.new(2000, 50, -1000)},
    {name = "Frost Town", level = 45, pos = Vector3.new(-2000, 50, -1000)},
    {name = "Magma Village", level = 60, pos = Vector3.new(3000, 50, 2000)},
    {name = "Dark Arena", level = 80, pos = Vector3.new(-3000, 50, 2000)},
    {name = "Floating Turtle", level = 100, pos = Vector3.new(1000, 200, -3000)},
    {name = "Sea of Treats", level = 120, pos = Vector3.new(-1000, 100, -3000)},
    {name = "Castle on Sea", level = 150, pos = Vector3.new(3000, 100, 3000)},
    {name = "Haunted Castle", level = 175, pos = Vector3.new(-3000, 100, 3000)},
    {name = "Great Tree", level = 200, pos = Vector3.new(4000, 200, 4000)},
    {name = "Port Town", level = 230, pos = Vector3.new(-4000, 50, -4000)},
    {name = "Kingdom of Rose", level = 700, pos = Vector3.new(-5000, 50, -5000)},
    {name = "Graveyard", level = 775, pos = Vector3.new(-6000, 50, -6000)},
    {name = "Snow Mountain", level = 850, pos = Vector3.new(-7000, 200, -7000)},
    {name = "Cursed Ship", level = 925, pos = Vector3.new(-8000, 50, -8000)},
    {name = "Ice Castle", level = 1000, pos = Vector3.new(-9000, 200, -9000)},
    {name = "Forgotten Island", level = 1075, pos = Vector3.new(-10000, 50, -10000)},
    {name = "Usoap's Island", level = 1150, pos = Vector3.new(-11000, 50, -11000)},
    {name = "Fairy Island", level = 1225, pos = Vector3.new(-12000, 200, -12000)},
    {name = "Haunted Castle 2", level = 1300, pos = Vector3.new(-13000, 50, -13000)},
    {name = "Port Town 2", level = 1375, pos = Vector3.new(-14000, 50, -14000)},
    {name = "Tiki Outpost", level = 2450, pos = Vector3.new(15000, 50, 15000)},
    {name = "Submerged Island", level = 2625, pos = Vector3.new(16000, 50, 16000)},
    {name = "Sea of Treats 3", level = 2700, pos = Vector3.new(17000, 100, 17000)},
    {name = "Sea of Treats 4", level = 2800, pos = Vector3.new(18000, 100, 18000)},
    {name = "Sea of Treats 5", level = 2900, pos = Vector3.new(19000, 100, 19000)}
}

local function GetPlayerLevel()
    local data = LocalPlayer:FindFirstChild("Data")
    if data and data:FindFirstChild("Level") then
        return data.Level.Value
    end
    return 1
end

local function GetSuitableIsland()
    local level = GetPlayerLevel()
    local suitable = Islands[1]
    for _, island in ipairs(Islands) do
        if level >= island.level then
            suitable = island
        end
    end
    return suitable
end

local function GetChar()
    local c = LocalPlayer.Character
    if not c or not c:FindFirstChild("Humanoid") or c.Humanoid.Health <= 0 then return nil end
    return c
end

local function GetPart(obj)
    return obj:FindFirstChild("HumanoidRootPart") or obj:FindFirstChild("Torso") or obj:FindFirstChild("UpperTorso") or obj:FindFirstChild("Head")
end

local function MoveTo(pos)
    local char = GetChar()
    if not char then return end
    local part = GetPart(char)
    if part then pcall(function() part.CFrame = CFrame.new(pos) end) end
end

local function SwitchSea(targetSea)
    local level = GetPlayerLevel()
    if targetSea == 2 and level < 700 then return false end
    if targetSea == 3 and level < 2450 then return false end
    
    local npcName = targetSea == 2 and "Captain" or "King"
    local npc = nil
    for _, v in pairs(Workspace:GetDescendants()) do
        if v:IsA("Model") and v:FindFirstChild("Humanoid") then
            local name = (v.Name or ""):lower()
            if string.find(name, string.lower(npcName)) then
                npc = v
                break
            end
        end
    end
    
    if npc then
        local t = GetPart(npc)
        if t then
            MoveTo(t.Position)
            wait(0.5)
            local click = t:FindFirstChildWhichIsA("ClickDetector")
            if click then pcall(function() fireclickdetector(click) end) end
            local remotes = ReplicatedStorage:FindFirstChild("Remotes") or ReplicatedStorage:FindFirstChild("Remote")
            if remotes then
                local comm = remotes:FindFirstChild("CommF_") or remotes:FindFirstChild("Comm")
                if comm then pcall(function() comm:InvokeServer("SwitchSea", targetSea) end) end
            end
            return true
        end
    end
    return false
end

local function AutoSwitchSea()
    local level = GetPlayerLevel()
    if level >= 700 and level < 2450 then
        return SwitchSea(2)
    elseif level >= 2450 then
        return SwitchSea(3)
    end
    return true
end

local function FindMob()
    local char = GetChar()
    if not char then return nil end
    local part = GetPart(char)
    if not part then return nil end
    
    local nearest, minDist = nil, math.huge
    for _, v in pairs(Workspace:GetDescendants()) do
        if v:IsA("Model") and v:FindFirstChild("Humanoid") and v.Name ~= LocalPlayer.Name then
            local hum = v:FindFirstChild("Humanoid")
            if hum and hum.Health and hum.Health > 0 then
                local t = GetPart(v)
                if t then
                    local dist = (t.Position - part.Position).Magnitude
                    if dist < minDist and dist <= 35 then
                        nearest, minDist = v, dist
                    end
                end
            end
        end
    end
    return nearest
end

local function DoAttack(target)
    local char = GetChar()
    if not char or not target then return end
    local t = GetPart(target)
    if t then MoveTo(t.Position + Vector3.new(0, 0, 2)) end
    wait(0.05)

    local tool = char:FindFirstChildOfClass("Tool")
    if not tool then
        local bp = LocalPlayer:FindFirstChild("Backpack")
        if bp then
            tool = bp:FindFirstChildOfClass("Tool")
            if tool then tool.Parent = char wait(0.1) end
        end
    end

    if tool then
        pcall(function() tool:Activate() wait(0.2) tool:Deactivate() end)
    else
        VirtualUser:ClickButton1(Vector2.new(0, 0))
    end
    Killed = Killed + 1
end

local function AcceptQuest()
    local char = GetChar()
    if not char then return end
    local island = GetSuitableIsland()
    if not island then return end

    MoveTo(island.pos)
    wait(0.5)

    local npc, minDist = nil, math.huge
    local charPart = GetPart(char)
    for _, v in pairs(Workspace:GetDescendants()) do
        if v:IsA("Model") and v:FindFirstChild("Humanoid") then
            local hum = v:FindFirstChild("Humanoid")
            if hum and hum.Health and hum.Health > 0 then
                local name = (v.Name or ""):lower()
                if string.find(name, "quest") or string.find(name, "npc") or string.find(name, "king") or string.find(name, "sage") then
                    local t = GetPart(v)
                    if t and charPart then
                        local dist = (t.Position - charPart.Position).Magnitude
                        if dist < minDist and dist <= 80 then
                            npc, minDist = v, dist
                        end
                    end
                end
            end
        end
    end

    if npc then
        local t = GetPart(npc)
        if t then
            MoveTo(t.Position)
            wait(0.5)
            local click = t:FindFirstChildWhichIsA("ClickDetector")
            if click then pcall(function() fireclickdetector(click) end) end
            local remotes = ReplicatedStorage:FindFirstChild("Remotes") or ReplicatedStorage:FindFirstChild("Remote")
            if remotes then
                local comm = remotes:FindFirstChild("CommF_") or remotes:FindFirstChild("Comm")
                if comm then pcall(function() comm:InvokeServer("StartQuest") end) end
            end
        end
    end
end

local function FarmWithQuest()
    if QuestCooldown > 0 then QuestCooldown = QuestCooldown - 0.1 return end
    local char = GetChar()
    if not char then return end

    if Settings.AutoSwitchSea then
        AutoSwitchSea()
    end

    local island = GetSuitableIsland()
    if not island then return end

    local part = GetPart(char)
    if part then
        local distToIsland = (part.Position - island.pos).Magnitude
        if distToIsland > 100 then MoveTo(island.pos) wait(0.5) return end
    end

    local mob = FindMob()
    if mob then
        DoAttack(mob)
        FarmCooldown = 0
    else
        FarmCooldown = FarmCooldown + 0.1
        if FarmCooldown > 5 then
            AcceptQuest()
            FarmCooldown = 0
            QuestCooldown = 5
        end
    end
end

local function AutoMastery()
    local char = GetChar()
    if not char then return end
    local bp = LocalPlayer:FindFirstChild("Backpack")
    if bp then
        for _, tool in pairs(bp:GetChildren()) do
            if tool:IsA("Tool") then
                tool.Parent = char
                wait(0.2)
                local mob = FindMob()
                if mob then DoAttack(mob) end
                tool.Parent = bp
                wait(0.1)
            end
        end
    end
end

local function FightingStyle()
    local char = GetChar()
    if not char then return end
    local bp = LocalPlayer:FindFirstChild("Backpack")
    if bp then
        for _, tool in pairs(bp:GetChildren()) do
            if tool:IsA("Tool") and string.find(tool.Name:lower(), "style") then
                tool.Parent = char
                wait(0.2)
                local mob = FindMob()
                if mob then DoAttack(mob) end
                tool.Parent = bp
                wait(0.1)
            end
        end
    end
end

local function CollectBones()
    local char = GetChar()
    if not char then return end
    local part = GetPart(char)
    if not part then return end

    for _, v in pairs(Workspace:GetDescendants()) do
        if v:IsA("Tool") and v.Parent == Workspace then
            if string.find((v.Name or ""):lower(), "bone") then
                local dist = (v.Position - part.Position).Magnitude
                if dist <= 40 then
                    MoveTo(v.Position)
                    wait(0.3)
                    local click = v:FindFirstChildWhichIsA("ClickDetector")
                    if click then pcall(function() fireclickdetector(click) Bones = Bones + 1 end) end
                end
            end
        end
    end
end

local function ItemsFarm()
    local char = GetChar()
    if not char then return end
    local part = GetPart(char)
    if not part then return end

    for _, v in pairs(Workspace:GetDescendants()) do
        if v:IsA("Tool") and v.Parent == Workspace then
            local name = (v.Name or ""):lower()
            if string.find(name, "item") or string.find(name, "drop") or string.find(name, "material") then
                local dist = (v.Position - part.Position).Magnitude
                if dist <= 40 then
                    MoveTo(v.Position)
                    wait(0.3)
                    local click = v:FindFirstChildWhichIsA("ClickDetector")
                    if click then pcall(function() fireclickdetector(click) end) end
                end
            end
        end
    end
end

local function AutoCakePrince()
    local char = GetChar()
    if not char then return end
    local part = GetPart(char)
    if not part then return end

    for _, v in pairs(Workspace:GetDescendants()) do
        if v:IsA("Model") and v:FindFirstChild("Humanoid") then
            local name = (v.Name or ""):lower()
            if string.find(name, "cake") or string.find(name, "prince") then
                local hum = v:FindFirstChild("Humanoid")
                if hum and hum.Health > 0 then
                    local t = GetPart(v)
                    if t and (t.Position - part.Position).Magnitude <= 40 then
                        MoveTo(t.Position)
                        DoAttack(v)
                    end
                end
            end
        end
    end
end

local function DragonDojo()
    local char = GetChar()
    if not char then return end
    for _, v in pairs(Workspace:GetDescendants()) do
        if v:IsA("Model") and v:FindFirstChild("Humanoid") then
            local name = (v.Name or ""):lower()
            if string.find(name, "dragon") or string.find(name, "dojo") then
                local hum = v:FindFirstChild("Humanoid")
                if hum and hum.Health > 0 then DoAttack(v) end
            end
        end
    end
end

local function Prehistoric()
    local char = GetChar()
    if not char then return end
    for _, v in pairs(Workspace:GetDescendants()) do
        if v:IsA("Model") and v:FindFirstChild("Humanoid") then
            local name = (v.Name or ""):lower()
            if string.find(name, "prehistoric") or string.find(name, "dino") then
                local hum = v:FindFirstChild("Humanoid")
                if hum and hum.Health > 0 then DoAttack(v) end
            end
        end
    end
end

local function MirageRaceV4()
    local char = GetChar()
    if not char then return end
    for _, v in pairs(Workspace:GetDescendants()) do
        if v:IsA("Model") and v:FindFirstChild("Humanoid") then
            local name = (v.Name or ""):lower()
            if string.find(name, "mirage") or string.find(name, "race") or string.find(name, "v4") then
                local hum = v:FindFirstChild("Humanoid")
                if hum and hum.Health > 0 then DoAttack(v) end
            end
        end
    end
end

local function SuKienBien()
    local char = GetChar()
    if not char then return end
    for _, v in pairs(Workspace:GetDescendants()) do
        if v:IsA("Model") and v:FindFirstChild("Humanoid") then
            local name = (v.Name or ""):lower()
            if string.find(name, "sea") or string.find(name, "event") or string.find(name, "boss") then
                local hum = v:FindFirstChild("Humanoid")
                if hum and hum.Health > 0 then DoAttack(v) end
            end
        end
    end
end

local function CombatPVP()
    local char = GetChar()
    if not char then return end
    for _, v in pairs(Players:GetPlayers()) do
        if v ~= LocalPlayer then
            local target = v.Character
            if target then
                local hum = target:FindFirstChild("Humanoid")
                if hum and hum.Health > 0 then DoAttack(target) end
            end
        end
    end
end

local function TapKich()
    local mob = FindMob()
    if mob then DoAttack(mob) end
end

local function CreateUI()
    for _, v in pairs(CoreGui:GetChildren()) do
        if v.Name == "MeowHub" then v:Destroy() end
    end

    local ScreenGui = Instance.new("ScreenGui")
    ScreenGui.Parent = CoreGui
    ScreenGui.Name = "MeowHub"
    ScreenGui.ResetOnSpawn = false

    local MainFrame = Instance.new("Frame")
    MainFrame.Parent = ScreenGui
    MainFrame.Size = UDim2.new(0, 300, 0, 520)
    MainFrame.Position = UDim2.new(0, 10, 0, 40)
    MainFrame.BackgroundColor3 = Color3.fromRGB(15, 15, 30)
    MainFrame.BorderSizePixel = 2
    MainFrame.BorderColor3 = Color3.fromRGB(255, 180, 0)
    MainFrame.Active = true
    MainFrame.Draggable = true

    local TitleBar = Instance.new("Frame")
    TitleBar.Parent = MainFrame
    TitleBar.Size = UDim2.new(1, 0, 0, 45)
    TitleBar.BackgroundColor3 = Color3.fromRGB(255, 180, 0)
    TitleBar.BorderSizePixel = 0

    local Logo = Instance.new("TextLabel")
    Logo.Parent = TitleBar
    Logo.Size = UDim2.new(0, 45, 1, 0)
    Logo.BackgroundTransparency = 1
    Logo.Text = "🐱"
    Logo.TextSize = 30
    Logo.TextColor3 = Color3.fromRGB(255, 255, 255)

    local Title = Instance.new("TextLabel")
    Title.Parent = TitleBar
    Title.Size = UDim2.new(1, -55, 0.6, 0)
    Title.Position = UDim2.new(0, 50, 0, 0)
    Title.BackgroundTransparency = 1
    Title.Text = "MEOW HUB"
    Title.TextColor3 = Color3.fromRGB(0, 0, 0)
    Title.Font = Enum.Font.GothamBold
    Title.TextSize = 18
    Title.TextXAlignment = Enum.TextXAlignment.Left

    local SubTitle = Instance.new("TextLabel")
    SubTitle.Parent = TitleBar
    SubTitle.Size = UDim2.new(1, -55, 0.4, 0)
    SubTitle.Position = UDim2.new(0, 50, 0.6, 0)
    SubTitle.BackgroundTransparency = 1
    SubTitle.Text = "Blox Fruits"
    SubTitle.TextColor3 = Color3.fromRGB(50, 30, 0)
    SubTitle.Font = Enum.Font.Gotham
    SubTitle.TextSize = 11

    local CloseBtn = Instance.new("TextButton")
    CloseBtn.Parent = TitleBar
    CloseBtn.Size = UDim2.new(0, 28, 0, 28)
    CloseBtn.Position = UDim2.new(1, -32, 0, 8)
    CloseBtn.BackgroundColor3 = Color3.fromRGB(200, 50, 50)
    CloseBtn.Text = "✕"
    CloseBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
    CloseBtn.Font = Enum.Font.GothamBold
    CloseBtn.TextSize = 14
    CloseBtn.BorderSizePixel = 0
    CloseBtn.MouseButton1Click:Connect(function() ScreenGui:Destroy() end)

    local LevelFrame = Instance.new("Frame")
    LevelFrame.Parent = MainFrame
    LevelFrame.Size = UDim2.new(1, -20, 0, 25)
    LevelFrame.Position = UDim2.new(0, 10, 0, 50)
    LevelFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 50)
    LevelFrame.BorderSizePixel = 1
    LevelFrame.BorderColor3 = Color3.fromRGB(60, 60, 80)

    local LevelLabel = Instance.new("TextLabel")
    LevelLabel.Parent = LevelFrame
    LevelLabel.Size = UDim2.new(1, 0, 1, 0)
    LevelLabel.BackgroundTransparency = 1
    LevelLabel.Text = "Level: 1"
    LevelLabel.TextColor3 = Color3.fromRGB(255, 200, 100)
    LevelLabel.Font = Enum.Font.GothamBold
    LevelLabel.TextSize = 13

    local ScrollFrame = Instance.new("ScrollingFrame")
    ScrollFrame.Parent = MainFrame
    ScrollFrame.Size = UDim2.new(1, 0, 1, -85)
    ScrollFrame.Position = UDim2.new(0, 0, 0, 80)
    ScrollFrame.BackgroundTransparency = 1
    ScrollFrame.BorderSizePixel = 0
    ScrollFrame.CanvasSize = UDim2.new(0, 0, 0, 0)
    ScrollFrame.ScrollBarThickness = 3
    ScrollFrame.ScrollBarImageColor3 = Color3.fromRGB(255, 180, 0)

    local function CreateSection(parent, title, yPos)
        local section = Instance.new("Frame")
        section.Parent = parent
        section.Size = UDim2.new(1, -10, 0, 28)
        section.Position = UDim2.new(0, 5, 0, yPos)
        section.BackgroundColor3 = Color3.fromRGB(255, 180, 0)
        section.BorderSizePixel = 0
        local label = Instance.new("TextLabel")
        label.Parent = section
        label.Size = UDim2.new(1, 0, 1, 0)
        label.BackgroundTransparency = 1
        label.Text = title
        label.TextColor3 = Color3.fromRGB(0, 0, 0)
        label.Font = Enum.Font.GothamBold
        label.TextSize = 13
        label.Position = UDim2.new(0, 10, 0, 0)
        label.TextXAlignment = Enum.TextXAlignment.Left
        return section
    end

    local function CreateToggle(parent, text, yPos, varName)
        local frame = Instance.new("Frame")
        frame.Parent = parent
        frame.Size = UDim2.new(1, -10, 0, 26)
        frame.Position = UDim2.new(0, 5, 0, yPos)
        frame.BackgroundColor3 = Color3.fromRGB(25, 25, 45)
        frame.BorderSizePixel = 1
        frame.BorderColor3 = Color3.fromRGB(50, 50, 70)

        local label = Instance.new("TextLabel")
        label.Parent = frame
        label.Size = UDim2.new(0.6, 0, 1, 0)
        label.Position = UDim2.new(0, 10, 0, 0)
        label.BackgroundTransparency = 1
        label.Text = text
        label.TextColor3 = Color3.fromRGB(220, 220, 255)
        label.Font = Enum.Font.Gotham
        label.TextSize = 12
        label.TextXAlignment = Enum.TextXAlignment.Left

        local btn = Instance.new("TextButton")
        btn.Parent = frame
        btn.Size = UDim2.new(0, 55, 1, -2)
        btn.Position = UDim2.new(1, -60, 0, 1)
        btn.BackgroundColor3 = Color3.fromRGB(50, 50, 80)
        btn.Text = "OFF"
        btn.TextColor3 = Color3.fromRGB(255, 255, 255)
        btn.Font = Enum.Font.GothamBold
        btn.TextSize = 11
        btn.BorderSizePixel = 1
        btn.BorderColor3 = Color3.fromRGB(80, 80, 120)

        btn.MouseButton1Click:Connect(function()
            Settings[varName] = not Settings[varName]
            if Settings[varName] then
                btn.BackgroundColor3 = Color3.fromRGB(50, 200, 50)
                btn.Text = "ON"
            else
                btn.BackgroundColor3 = Color3.fromRGB(50, 50, 80)
                btn.Text = "OFF"
            end
        end)
        return frame
    end

    local function CreateButton(parent, text, yPos, callback)
        local btn = Instance.new("TextButton")
        btn.Parent = parent
        btn.Size = UDim2.new(1, -10, 0, 28)
        btn.Position = UDim2.new(0, 5, 0, yPos)
        btn.BackgroundColor3 = Color3.fromRGB(255, 150, 50)
        btn.Text = text
        btn.TextColor3 = Color3.fromRGB(0, 0, 0)
        btn.Font = Enum.Font.GothamBold
        btn.TextSize = 12
        btn.BorderSizePixel = 0
        btn.MouseButton1Click:Connect(callback)
        return btn
    end

    local yPos = 5

    CreateSection(ScrollFrame, "FARM", yPos)
    yPos = yPos + 33

    local farmFrame = Instance.new("Frame")
    farmFrame.Parent = ScrollFrame
    farmFrame.Size = UDim2.new(1, -10, 0, 33)
    farmFrame.Position = UDim2.new(0, 5, 0, yPos)
    farmFrame.BackgroundColor3 = Color3.fromRGB(255, 100, 50)
    farmFrame.BorderSizePixel = 2
    farmFrame.BorderColor3 = Color3.fromRGB(255, 200, 0)

    local farmLabel = Instance.new("TextLabel")
    farmLabel.Parent = farmFrame
    farmLabel.Size = UDim2.new(0.6, 0, 1, 0)
    farmLabel.Position = UDim2.new(0, 10, 0, 0)
    farmLabel.BackgroundTransparency = 1
    farmLabel.Text = "AUTO FARM"
    farmLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
    farmLabel.Font = Enum.Font.GothamBold
    farmLabel.TextSize = 13

    local farmBtn = Instance.new("TextButton")
    farmBtn.Parent = farmFrame
    farmBtn.Size = UDim2.new(0, 60, 1, -4)
    farmBtn.Position = UDim2.new(1, -65, 0, 2)
    farmBtn.BackgroundColor3 = Color3.fromRGB(50, 50, 80)
    farmBtn.Text = "OFF"
    farmBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
    farmBtn.Font = Enum.Font.GothamBold
    farmBtn.TextSize = 12
    farmBtn.BorderSizePixel = 1
    farmBtn.BorderColor3 = Color3.fromRGB(80, 80, 120)

    farmBtn.MouseButton1Click:Connect(function()
        Settings.Farm = not Settings.Farm
        if Settings.Farm then
            farmBtn.BackgroundColor3 = Color3.fromRGB(50, 200, 50)
            farmBtn.Text = "ON"
        else
            farmBtn.BackgroundColor3 = Color3.fromRGB(50, 50, 80)
            farmBtn.Text = "OFF"
        end
    end)
    yPos = yPos + 38

    CreateToggle(ScrollFrame, "Switch Sea", yPos, "AutoSwitchSea")
    yPos = yPos + 31
    CreateToggle(ScrollFrame, "Mastery", yPos, "AutoMastery")
    yPos = yPos + 31
    CreateToggle(ScrollFrame, "Fighting Style", yPos, "FightingStyle")
    yPos = yPos + 31
    CreateToggle(ScrollFrame, "Items Farm", yPos, "ItemsFarm")
    yPos = yPos + 35

    CreateSection(ScrollFrame, "SEA", yPos)
    yPos = yPos + 33
    CreateButton(ScrollFrame, "Sea 2", yPos, function() SwitchSea(2) end)
    yPos = yPos + 33
    CreateButton(ScrollFrame, "Sea 3", yPos, function() SwitchSea(3) end)
    yPos = yPos + 35

    CreateSection(ScrollFrame, "EVENT", yPos)
    yPos = yPos + 33
    CreateToggle(ScrollFrame, "Mirage V4", yPos, "MirageRaceV4")
    yPos = yPos + 31
    CreateToggle(ScrollFrame, "Sea Event", yPos, "SuKienBien")
    yPos = yPos + 35

    CreateSection(ScrollFrame, "ATTACK", yPos)
    yPos = yPos + 33
    CreateToggle(ScrollFrame, "Cake Prince", yPos, "AutoCakePrince")
    yPos = yPos + 31
    CreateToggle(ScrollFrame, "Dragon Dojo", yPos, "DragonDojo")
    yPos = yPos + 31
    CreateToggle(ScrollFrame, "Prehistoric", yPos, "Prehistoric")
    yPos = yPos + 31
    CreateToggle(ScrollFrame, "Auto Bones", yPos, "AutoBones")
    yPos = yPos + 31
    CreateToggle(ScrollFrame, "Tap Kich", yPos, "TapKich")
    yPos = yPos + 31
    CreateToggle(ScrollFrame, "PVP", yPos, "CombatPVP")

    ScrollFrame.CanvasSize = UDim2.new(0, 0, 0, yPos + 50)

    spawn(function()
        while wait(1) do
            LevelLabel.Text = "Level: " .. GetPlayerLevel()
        end
    end)

    return ScreenGui
end

local ScreenGui = CreateUI()

spawn(function()
    local masteryCD, styleCD, boneCD, itemCD, tapCD = 0, 0, 0, 0, 0
    while wait(0.1) do
        local char = GetChar()
        if not char then wait(1) continue end

        if Settings.Farm then FarmWithQuest() end

        if Settings.AutoMastery and masteryCD <= 0 then AutoMastery() masteryCD = 2 end
        if masteryCD > 0 then masteryCD = masteryCD - 0.1 end

        if Settings.FightingStyle and styleCD <= 0 then FightingStyle() styleCD = 2 end
        if styleCD > 0 then styleCD = styleCD - 0.1 end

        if Settings.AutoBones and boneCD <= 0 then CollectBones() boneCD = 0.5 end
        if boneCD > 0 then boneCD = boneCD - 0.1 end

        if Settings.ItemsFarm and itemCD <= 0 then ItemsFarm() itemCD = 0.5 end
        if itemCD > 0 then itemCD = itemCD - 0.1 end

        if Settings.AutoCakePrince then AutoCakePrince() end
        if Settings.DragonDojo then DragonDojo() end
        if Settings.Prehistoric then Prehistoric() end
        if Settings.MirageRaceV4 then MirageRaceV4() end
        if Settings.SuKienBien then SuKienBien() end
        if Settings.CombatPVP then CombatPVP() end

        if Settings.TapKich and tapCD <= 0 then TapKich() tapCD = 0.1 end
        if tapCD > 0 then tapCD = tapCD - 0.1 end
    end
end)
← Back to timeline