-- Check if PlaceId matches the target game
if game.PlaceId == 3255508650 or game.PlaceId == 3255508650 then
    -- Load the Rayfield library
    local Rayfield = loadstring(game:HttpGet('https://[Log in to view URL]'))()

    -- Function to create Rayfield window with settings
    local function createWindow()
        return Rayfield:CreateWindow({
            Name = "IN BETA-FE HUB",
            Icon = 0,
            LoadingTitle = "BETA TAYEVION HUB",
            LoadingSubtitle = "by TAYEVION",
            Enabled = true,
            Invite = "__iiamdiorr",
            RememberJoins = true
        })
    end

    local Window = createWindow()

    -- Key System with improved error handling and retry logic
    local function setupKeySystem()
        local KeySettings = {
            Title = "TAYEVION KEY System",
            Subtitle = "DM ME TO GET KEY",
            Note = "Instagram: __iiamdiorr",
            FileName = "HUB FE",
            SaveKey = false,
            GrabKeyFromSite = true,
            Key = {"https://[Log in to view URL]"} -- Replace with actual key retrieval URL
        }

        local success, err
        local retries = 0
        repeat
            success, err = pcall(function()
                Window:SetKeySystem(KeySettings)
            end)
            retries = retries + 1
            if not success then
                warn("Error setting up key system: " .. err)
                wait(2)  -- Wait before retrying
            end
        until success or retries > 3
        
        if not success then
            Rayfield:Notify({
                Title = "Key System Error",
                Content = "There was an error setting up the key system. Please try again later.",
                Duration = 5,
                Image = nil,
            })
        else
            Rayfield:Notify({
                Title = "Key System",
                Content = "Key system set up successfully! You can now access features.",
                Duration = 5,
                Image = nil,
            })
        end
    end

    setupKeySystem()

    -- Function to create Tabs and Sections
    local function createTabs()
        local MainTab = Window:CreateTab("🏠 Home", nil)
        local BrawlTab = Window:CreateTab("Brawl 2 Scripts", nil)
        local RageTab = Window:CreateTab("💥 Rage", nil)  -- New Rage Tab
        local ScriptTab = Window:CreateTab("📜 Script", nil) -- New Script Tab
        local FETab = Window:CreateTab("🔮 FE", nil) -- New FE Tab
        local MiscTab = Window:CreateTab("🔧 Misc", nil) -- New Misc Tab
        local SettingsTab = Window:CreateTab("⚙️ Settings", nil) -- Settings Tab

        -- Add Sections to Tabs
        MainTab:CreateSection("Main")
        BrawlTab:CreateSection("Brawl 2 Scripts")
        RageTab:CreateSection("Rage Features")  -- Rage section
        ScriptTab:CreateSection("Execute Your Script") -- Section in Script Tab
        FETab:CreateSection("FE Features") -- Section for FE features
        MiscTab:CreateSection("Miscellaneous Features") -- Section for Misc Tab
        SettingsTab:CreateSection("User Settings") -- Section for Settings Tab

        return MainTab, BrawlTab, RageTab, ScriptTab, FETab, MiscTab, SettingsTab
    end

    local MainTab, BrawlTab, RageTab, ScriptTab, FETab, MiscTab, SettingsTab = createTabs()

    -- Settings Example: Toggle Notifications
    local notificationsEnabled = true -- Default value

    SettingsTab:CreateToggle({
        Name = "Enable Notifications",
        Flag = "ToggleNotifications",
        CurrentValue = notificationsEnabled,
        Callback = function(value)
            notificationsEnabled = value
            Rayfield:Notify({
                Title = "Notification Settings",
                Content = notificationsEnabled and "Notifications Enabled" or "Notifications Disabled",
                Duration = 5,
                Image = nil,
            })
        end
    })

    -- Delete GUI Button
    SettingsTab:CreateButton({
        Name = "Delete GUI",
        Flag = "DeleteGUIButton",
        Callback = function()
            Window:Delete() -- Function to close/delete the GUI window
            Rayfield:Notify({
                Title = "GUI Deleted",
                Content = "The GUI has been successfully closed!",
                Duration = 5,
                Image = nil,
            })
        end
    })

    -- Load external script with error handling
    local function loadExternalScript(url)
        local success, err = pcall(function()
            local response = game:HttpGet(url, true)
            loadstring(response)()  -- Execute the script
        end)
        
        if not success then
            warn("Error loading external script: " .. err)
            if notificationsEnabled then
                Rayfield:Notify({
                    Title = "External Script Error",
                    Content = "The external script failed to load. Please try again later.",
                    Duration = 5,
                    Image = nil,
                })
            end
        end
    end

    -- Brawl 2 Scripts Section
    BrawlTab:CreateButton({
        Name = "Load Brawl 2 Scripts",
        Flag = "LoadBrawlScriptsButton",
        Callback = function()
            local brawlScriptURL = 'https://[Log in to view URL]' -- Example URL
            loadExternalScript(brawlScriptURL)
        end
    })

    -- Notification for script execution
    local function sendNotification()
        if notificationsEnabled then
            Rayfield:Notify({
                Title = "Script Executed",
                Content = "Enjoy the new features!",
                Duration = 5,
                Image = nil,
            })
        end
    end

    sendNotification()

    -- God Mode Script
    local godModeEnabled = false
    local player = game.Players.LocalPlayer
    local character = player.Character or player.CharacterAdded:Wait()

    local function toggleGodMode()
        godModeEnabled = not godModeEnabled

        if character and character:FindFirstChild("Humanoid") then
            local humanoid = character:FindFirstChild("Humanoid")

            if godModeEnabled then
                humanoid.MaxHealth = math.huge
                humanoid.HealthChanged:Connect(function(health)
                    if health <= 0 then
                        humanoid.Health = humanoid.MaxHealth
                    end
                end)
                if notificationsEnabled then
                    Rayfield:Notify({
                        Title = "God Mode Activated",
                        Content = "You are now invincible!",
                        Duration = 5,
                        Image = nil,
                    })
                end
            else
                humanoid.MaxHealth = 100
                if notificationsEnabled then
                    Rayfield:Notify({
                        Title = "God Mode Deactivated",
                        Content = "You are no longer invincible.",
                        Duration = 5,
                        Image = nil,
                    })
                end
            end
        else
            if notificationsEnabled then
                Rayfield:Notify({
                    Title = "Character Error",
                    Content = "Ensure your character is fully loaded!",
                    Duration = 5,
                    Image = nil,
                })
            end
        end
    end

    -- Create God Mode Button in Main Tab
    MainTab:CreateButton({
        Name = "Toggle God Mode",
        Flag = "GodModeButton",
        Callback = toggleGodMode
    })

    -- Aimbot Functionality in Rage Tab
    local aimbotEnabled = false

    local function toggleAimbot()
        aimbotEnabled = not aimbotEnabled

        if aimbotEnabled then
            if notificationsEnabled then
                Rayfield:Notify({
                    Title = "Aimbot Activated",
                    Content = "Aimbot is now active. Aim towards enemies.",
                    Duration = 5,
                    Image = nil,
                })
            end
            -- Aimbot Logic
            local player = game.Players.LocalPlayer
            local camera = workspace.CurrentCamera

            game:GetService("RunService").RenderStepped:Connect(function()
                if aimbotEnabled and player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
                    local target = nil
                    local closestDistance = math.huge

                    for _, enemy in pairs(game.Players:GetPlayers()) do
                        if enemy ~= player and enemy.Character and enemy.Character:FindFirstChild("HumanoidRootPart") then
                            local distance = (camera.CFrame.Position - enemy.Character.HumanoidRootPart.Position).magnitude
                            if distance < closestDistance then
                                closestDistance = distance
                                target = enemy.Character.HumanoidRootPart
                            end
                        end
                    end

                    if target then
                        local targetPosition = target.Position
                        local direction = (targetPosition - camera.CFrame.Position).unit
                        local targetCFrame = CFrame.new(targetPosition, targetPosition + direction)
                        camera.CFrame = targetCFrame
                    end
                end
            end)
        else
            if notificationsEnabled then
                Rayfield:Notify({
                    Title = "Aimbot Deactivated",
                    Content = "Aimbot has been turned off.",
                    Duration = 5,
                    Image = nil,
                })
            end
        end
    end

    -- Toggle Button for Aimbot
    RageTab:CreateButton({
        Name = "Toggle Aimbot",
        Flag = "AimbotButton",
        Callback = toggleAimbot,
    })

    -- Wallhack Functionality in Home Tab
    local wallhackEnabled = false

    local function toggleWallhack()
        wallhackEnabled = not wallhackEnabled

        for _, player in pairs(game.Players:GetPlayers()) do
            if player ~= game.Players.LocalPlayer and player.Character then
                for _, part in ipairs(player.Character:GetChildren()) do
                    if part:IsA("MeshPart") or part:IsA("Part") then
                        part.Transparency = wallhackEnabled and 0.5 or 0 -- Set transparency based on toggling
                        part.CanCollide = not wallhackEnabled -- Make it non-collidable if wallhack is enabled
                    end
                end
            end
        end
        
        if notificationsEnabled then
            Rayfield:Notify({
                Title = "Wallhack " .. (wallhackEnabled and "Activated" or "Deactivated"),
                Content = "Enemies are now " .. (wallhackEnabled and "visible" or "hidden") .. ".",
                Duration = 5,
                Image = nil,
            })
        end
    end

    -- Toggle Button for Wallhack
    MainTab:CreateButton({
        Name = "Toggle Wallhack",
        Flag = "WallhackButton",
        Callback = toggleWallhack,
    })

    -- ESP Functionality in Home Tab
    local espEnabled = false
    local espBoxes = {}

    local function toggleESP()
        espEnabled = not espEnabled

        for _, player in pairs(game.Players:GetPlayers()) do
            if player ~= game.Players.LocalPlayer then
                if espEnabled then
                    -- Create ESP box
                    local espBox = Instance.new("BoxHandleAdornment")
                    espBox.Size = Vector3.new(2, 2, 2)
                    espBox.Adornee = player.Character and player.Character:FindFirstChild("HumanoidRootPart")
                    espBox.ZIndex = 0
                    espBox.Color3 = Color3.new(1, 0, 0)  -- Red color for ESP
                    espBox.Transparency = 0.5
                    espBox.Size = Vector3.new(4, 6, 2)  -- Adjust size as needed
                    espBox.Parent = workspace

                    espBoxes[player.Name] = espBox
                elseif espBoxes[player.Name] then
                    espBoxes[player.Name]:Destroy()
                    espBoxes[player.Name] = nil
                end
            end
        end

        if not espEnabled then
            for _, box in pairs(espBoxes) do
                box:Destroy()
            end
            espBoxes = {}
        end
        
        if notificationsEnabled then
            Rayfield:Notify({
                Title = "ESP " .. (espEnabled and "Activated" or "Deactivated"),
                Content = "ESP is now " .. (espEnabled and "enabled" or "disabled") .. ".",
                Duration = 5,
                Image = nil,
            })
        end
    end

    -- Toggle Button for ESP
    MainTab:CreateButton({
        Name = "Toggle ESP",
        Flag = "ESPButton",
        Callback = toggleESP,
    })

    -- Create Slider for Walkspeed Adjustment
    local function createSlider(tab)
        tab:CreateSlider({
            Name = "Walkspeed",
            Range = {0, 300},
            Increment = 1,
            Suffix = "Speed",
            CurrentValue = 16, -- Default value
            Flag = "Slider1",
            Callback = function(Value)
                local player = game.Players.LocalPlayer
                local humanoid = player.Character and player.Character:FindFirstChild("Humanoid")

                if humanoid then
                    local success, err = pcall(function()
                        humanoid.WalkSpeed = Value
                    end)
                    
                    if not success then
                        warn("Error setting walkspeed: " .. err)
                        if notificationsEnabled then
                            Rayfield:Notify({
                                Title = "Walkspeed Error",
                                Content = "Failed to set Walkspeed.",
                                Duration = 5,
                                Image = nil,
                            })
                        end
                    end
                else
                    warn("Humanoid not found. Ensure character is fully loaded.")
                    if notificationsEnabled then
                        Rayfield:Notify({
                            Title = "Character Error",
                            Content = "Humanoid not found. Please make sure your character is loaded.",
                            Duration = 5,
                            Image = nil,
                        })
                    end
                end
            end,
        })
    end

    createSlider(MainTab)

    -- Dropdown for "Coming Soon" section
    local function createDropdown(tab)
        tab:CreateDropdown({
            Name = "Coming Soon",
            Options = {"Option 1", "Option 2"},
            CurrentOption = {"Option 1"},
            MultipleOptions = false,
            Flag = "Teleport",
            Callback = function(Options)
                if notificationsEnabled then
                    Rayfield:Notify({
                        Title = "Option Selected",
                        Content = "You selected: " .. Options[1],
                        Duration = 5,
                        Image = nil,
                    })
                end
            end,
        })
    end

    createDropdown(MainTab)

    -- Fly Script
    local flying = false
    local hrp

    local function toggleFly()
        flying = not flying
        hrp = character:FindFirstChild("HumanoidRootPart")
        if not hrp then
            if notificationsEnabled then
                Rayfield:Notify({
                    Title = "Error",
                    Content = "HumanoidRootPart not found. Ensure your character is loaded properly.",
                    Duration = 5,
                    Image = nil,
                })
            end
            return
        end
    
        if flying then
            local bodyGyro = Instance.new("BodyGyro")
            local bodyVelocity = Instance.new("BodyVelocity")
            bodyGyro.P = 9e4
            bodyGyro.Parent = hrp
            bodyGyro.MaxTorque = Vector3.new(9e4, 9e4, 9e4)
            bodyVelocity.Velocity = Vector3.new(0, 0.1, 0)
            bodyVelocity.MaxForce = Vector3.new(9e4, 9e4, 9e4)
            bodyVelocity.Parent = hrp

            while flying and wait() do
                bodyGyro.CFrame = CFrame.new(workspace.CurrentCamera.CFrame.Position)
                bodyVelocity.Velocity = (workspace.CurrentCamera.CFrame.LookVector * 50) + Vector3.new(0, 0.1, 0)
            end
            
            bodyGyro:Destroy()
            bodyVelocity:Destroy()
        end
    end

    -- Create Fly Button in Main Tab
    MainTab:CreateButton({
        Name = "Toggle Fly",
        Flag = "FlyButton",
        Callback = toggleFly
    })

    -- FE Fling Script for Brawl Tab
    local function feFlingPlayer()
        local player = game.Players.LocalPlayer
        local character = player.Character

        if character and character:FindFirstChild("HumanoidRootPart") then
            local humanoidRootPart = character.HumanoidRootPart
            local bodyVelocity = Instance.new("BodyVelocity")
            bodyVelocity.MaxForce = Vector3.new(500000, 500000, 500000)
            bodyVelocity.Velocity = Vector3.new(
                math.random(-500, 500), 
                math.random(300, 600), 
                math.random(-500, 500)
            )
            bodyVelocity.Parent = humanoidRootPart

            game:GetService("Debris"):AddItem(bodyVelocity, 0.5)

            if notificationsEnabled then
                Rayfield:Notify({
                    Title = "Fling Activated",
                    Content = "Your character has been flung!",
                    Duration = 5,
                    Image = nil,
                })
            end
        else
            if notificationsEnabled then
                Rayfield:Notify({
                    Title = "Error",
                    Content = "HumanoidRootPart not found. Ensure your character is loaded properly.",
                    Duration = 5,
                    Image = nil,
                })
            end
        end
    end

    -- Add FE Fling Button in Brawl Tab
    BrawlTab:CreateButton({
        Name = "Activate FE Fling",
        Flag = "FEFlingButton",
        Callback = feFlingPlayer
    })

    -- Rage Tab Features
    local rageEnabled = false

    -- Toggle Damage Multiplier in Rage Tab
    local function toggleRage()
        rageEnabled = not rageEnabled
        if rageEnabled then
            if notificationsEnabled then
                Rayfield:Notify({
                    Title = "Rage Mode Activated",
                    Content = "Your damage has been multiplied!",
                    Duration = 5,
                    Image = nil,
                })
            end
            -- Implement damage multiplier logic here
        else
            if notificationsEnabled then
                Rayfield:Notify({
                    Title = "Rage Mode Deactivated",
                    Content = "Your damage multiplier has been removed.",
                    Duration = 5,
                    Image = nil,
                })
            end
            -- Revert changes here
        end
    end

    RageTab:CreateButton({
        Name = "Toggle Rage",
        Flag = "RageButton",
        Callback = toggleRage,
    })

    -- Script Tab: Execute Scripts from UI
    ScriptTab:CreateTextBox({
        Name = "Custom Script",
        PlaceholderText = "Paste your script here...",
        TextDisappear = true,
        Callback = function(script)
            local success, err = pcall(function()
                loadstring(script)() 
            end)

            if success then
                if notificationsEnabled then
                    Rayfield:Notify({
                        Title = "Script Executed",
                        Content = "Your script has run successfully!",
                        Duration = 5,
                        Image = nil,
                    })
                end
            else
                if notificationsEnabled then
                    Rayfield:Notify({
                        Title = "Script Error",
                        Content = "Error executing script: " .. tostring(err),
                        Duration = 5,
                        Image = nil,
                    })
                end
            end
        end
    })

    -- FE Black Hole Script for FE Tab
    local function activateBlackHole()
        local player = game.Players.LocalPlayer
        local character = player.Character

        if character and character:FindFirstChild("HumanoidRootPart") then
            local blackHole = Instance.new("Part")
            blackHole.Size = Vector3.new(10, 10, 10)
            blackHole.Shape = Enum.PartType.Ball
            blackHole.BrickColor = BrickColor.new("Really black")
            blackHole.Material = Enum.Material.SmoothPlastic
            blackHole.Anchored = true
            blackHole.CanCollide = false
            blackHole.Position = character.HumanoidRootPart.Position
            blackHole.Parent = workspace
            blackHole:SetNetworkOwner(nil)

            local sound = Instance.new("Sound", blackHole)
            sound.SoundId = "rbxassetid://your-sound-id" -- Replace with your preferred sound ID
            sound:Play()

            blackHole.Touched:Connect(function(hit)
                local human = hit.Parent:FindFirstChild("Humanoid")
                if human and hit.Parent ~= character then
                    local direction = (blackHole.Position - hit.Position).unit
                    local forceMagnitude = 50

                    local bodyVelocity = Instance.new("BodyVelocity")
                    bodyVelocity.Velocity = direction * forceMagnitude
                    bodyVelocity.MaxForce = Vector3.new(5000, 5000, 5000)
                    bodyVelocity.Parent = hit.Parent.HumanoidRootPart

                    game:GetService("Debris"):AddItem(bodyVelocity, 0.25)
                end
            end)

            game:GetService("Debris"):AddItem(blackHole, 5)
        else
            if notificationsEnabled then
                Rayfield:Notify({
                    Title = "Error",
                    Content = "HumanoidRootPart not found. Ensure your character is loaded properly.",
                    Duration = 5,
                    Image = nil,
                })
            end
        end
    end

    -- Add Black Hole Button in FE Tab
    FETab:CreateButton({
        Name = "Activate FE Black Hole",
        Flag = "BlackHoleButton",
        Callback = activateBlackHole
    })

    -- Additional features for Misc Tab
    MiscTab:CreateButton({
        Name = "Clear Inventory",
        Flag = "ClearInventoryButton",
        Callback = function()
            local player = game.Players.LocalPlayer
            if player and player.Backpack then
                for _, item in ipairs(player.Backpack:GetChildren()) do
                    item:Destroy()
                end
            end

            if notificationsEnabled then
                Rayfield:Notify({
                    Title = "Inventory Cleared",
                    Content = "Your backpack has been cleared!",
                    Duration = 5,
                    Image = nil,
                })
            end
        end
    })

else
    -- User-friendly exit if PlaceId doesn't match
    Rayfield:Notify({
        Title = "Unsupported Game",
        Content = "This script is only intended for specific games. Exiting...",
        Duration = 5,
        Image = nil,
    })
end

Embed on website

To embed this program on your website, copy the following code and paste it into your website's HTML: