-- Load Rayfield UI Library
local Rayfield = loadstring(game:HttpGet('https://[Log in to view URL]'))()

-- Centralized script URLs for easier management
local Scripts = {
    InfiniteYield = "https://[Log in to view URL]",
    TeleportToPlayer = "https://[Log in to view URL]",
    OrbitGUI = "https://[Log in to view URL]",
    TrollingHub = "https://[Log in to view URL]",
    ServerCrash = "https://[Log in to view URL]",
    RageDestroyer = "https://[Log in to view URL]"
}

-- Configuration management
local Config = {}
local function SaveConfig()
    writefile("FE_Hub_Config.json", game:GetService("HttpService"):JSONEncode(Config))
    Rayfield:Notify({
        Title = "Configuration Saved",
        Content = "Your settings have been saved successfully.",
        Duration = 5
    })
end

local function LoadConfig()
    if isfile("FE_Hub_Config.json") then
        Config = game:GetService("HttpService"):JSONDecode(readfile("FE_Hub_Config.json"))
        Rayfield:Notify({
            Title = "Configuration Loaded",
            Content = "Your settings have been loaded successfully.",
            Duration = 5
        })
    else
        Config = {}
    end
end

-- Safe script loader with error handling
local function SafeLoadScript(url)
    local success, errorMsg = pcall(function()
        loadstring(game:HttpGet(url))()
    end)
    if not success then
        Rayfield:Notify({
            Title = "Error",
            Content = "Failed to load script: " .. errorMsg,
            Duration = 5
        })
    end
end

-- Main UI Window
local Window = Rayfield:CreateWindow({
    Name = "SCRIPT HUB",
    LoadingTitle = "Tayevion Hub",
    LoadingSubtitle = "by __iiamdiorr",
    ConfigurationSaving = {
        Enabled = true,
        FolderName = nil,
        FileName = "FE Hub"
    },
    Discord = {
        Enabled = true,
        Invite = "__iiamdiorr",
        RememberJoins = true
    },
    KeySystem = true,
    KeySettings = {
        Title = "FE HUB KEY",
        Subtitle = "Key System",
        Note = "DM ON INSTAGRAM FOR KEY __iiamdiorr",
        FileName = "SiriusKey",
        SaveKey = true,
        GrabKeyFromSite = true,
        Key = "https://[Log in to view URL]"
    }
})

-- Main Tab
local MainTab = Window:CreateTab("🏠 Home", nil)
MainTab:CreateLabel("Welcome to Tayevion Hub!")
MainTab:CreateButton({
    Name = "Infinite Yield",
    Info = "Loads Infinite Yield script.",
    Callback = function()
        SafeLoadScript(Scripts.InfiniteYield)
    end
})

MainTab:CreateButton({
    Name = "Teleport to Player",
    Info = "Teleports to another player.",
    Callback = function()
        SafeLoadScript(Scripts.TeleportToPlayer)
    end
})

MainTab:CreateToggle({
    Name = "Infinite Jump",
    Info = "Toggle infinite jumping.",
    CurrentValue = false,
    Callback = function(state)
        local InfiniteJumpEnabled = state
        game:GetService("UserInputService").JumpRequest:Connect(function()
            if InfiniteJumpEnabled then
                game:GetService("Players").LocalPlayer.Character:FindFirstChildOfClass("Humanoid"):ChangeState("Jumping")
            end
        end)
    end
})

-- Settings Tab
local SettingTab = Window:CreateTab("📝 Settings", nil)
SettingTab:CreateButton({
    Name = "Save Config",
    Info = "Saves the configuration.",
    Callback = function()
        SaveConfig()
    end
})

SettingTab:CreateButton({
    Name = "Load Config",
    Info = "Loads the configuration.",
    Callback = function()
        LoadConfig()
    end
})

SettingTab:CreateButton({
    Name = "Exit Script",
    Info = "Exits the script.",
    Callback = function()
        Rayfield:Destroy()
    end
})

-- FE Scripts Tab
local FeTab = Window:CreateTab("🚀 Fe Scripts", nil)
FeTab:CreateButton({
    Name = "Fe Orbit",
    Info = "Loads Fe Orbit script.",
    Callback = function()
        SafeLoadScript(Scripts.OrbitGUI)
    end
})

FeTab:CreateButton({
    Name = "Fe ServerSide Trolling Hub",
    Info = "Loads a trolling GUI.",
    Callback = function()
        SafeLoadScript(Scripts.TrollingHub)
    end
})

FeTab:CreateButton({
    Name = "Fe Destroyer",
    Info = "Crashes the server.",
    Callback = function()
        SafeLoadScript(Scripts.ServerCrash)
    end
})

-- Rage Tab
local RageTab = Window:CreateTab("🤬 Rage", nil)
RageTab:CreateButton({
    Name = "Rage Destroyer",
    Info = "Crashes the server.",
    Callback = function()
        SafeLoadScript(Scripts.RageDestroyer)
    end
})

-- Misc Tab for additional functionalities
local MiscTab = Window:CreateTab("🎮 Misc", nil)

-- God Mode Toggle
MiscTab:CreateToggle({
    Name = "God Mode",
    Info = "Makes you invincible and prevents health loss.",
    CurrentValue = false,
    Callback = function(state)
        local player = game:GetService("Players").LocalPlayer
        local character = player.Character or player.CharacterAdded:Wait()
        local humanoid = character:WaitForChild("Humanoid")

        if state then
            humanoid.HealthChanged:Connect(function()
                if humanoid.Health < humanoid.MaxHealth then
                    humanoid.Health = humanoid.MaxHealth
                end
            end)
        else
            humanoid.HealthChanged:Disconnect()  -- Stop God Mode
        end
    end
})

-- No Clip Toggle
MiscTab:CreateToggle({
    Name = "No Clip",
    Info = "Allows you to walk through walls and objects.",
    CurrentValue = false,
    Callback = function(state)
        local player = game:GetService("Players").LocalPlayer
        local character = player.Character or player.CharacterAdded:Wait()
        local humanoid = character:WaitForChild("Humanoid")
        
        -- Enable No Clip mode
        if state then
            humanoid.PlatformStand = true  -- Disable normal character collisions
            character:WaitForChild("HumanoidRootPart").AncestryChanged:Connect(function(_, parent)
                if not parent then  -- If the root part is removed from the workspace, we re-enable it
                    humanoid.PlatformStand = false
                end
            end)
        else
            humanoid.PlatformStand = false  -- Restore normal character collisions
        end
    end
})

-- Speed Boost Toggle
MiscTab:CreateToggle({
    Name = "Speed Boost",
    Info = "Increases your walking speed.",
    CurrentValue = false,
    Callback = function(state)
        local player = game:GetService("Players").LocalPlayer
        local character = player.Character or player.CharacterAdded:Wait()
        local humanoid = character:WaitForChild("Humanoid")

        if state then
            humanoid.WalkSpeed = 100  -- Increase speed (default is 16)
        else
            humanoid.WalkSpeed = 16  -- Reset speed to default
        end
    end
})

-- Anti-Fall Damage Toggle
MiscTab:CreateToggle({
    Name = "Anti-Fall Damage",
    Info = "Prevents fall damage from occurring.",
    CurrentValue = false,
    Callback = function(state)
        local player = game:GetService("Players").LocalPlayer
        local character = player.Character or player.CharacterAdded:Wait()
        local humanoid = character:WaitForChild("Humanoid")

        if state then
            humanoid:SetStateEnabled(Enum.HumanoidStateType.Freefall, false)  -- Disable fall damage state
        else
            humanoid:SetStateEnabled(Enum.HumanoidStateType.Freefall, true)  -- Restore fall damage state
        end
    end
})

-- Additional Functions (optional)
-- Example: Custom Teleport Function (add to Misc tab for fun)
MiscTab:CreateButton({
    Name = "Teleport to Spawn",
    Info = "Teleports you to the spawn location.",
    Callback = function()
        local spawnLocation = game:GetService("Workspace"):FindFirstChild("SpawnLocation")
        if spawnLocation then
            game:GetService("Players").LocalPlayer.Character:SetPrimaryPartCFrame(spawnLocation.CFrame)
        else
            Rayfield:Notify({
                Title = "Error",
                Content = "Spawn location not found!",
                Duration = 5
            })
        end
    end
})

Embed on website

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