-- 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
local MiscTab = Window:CreateTab("🧩 Misc", nil)

MiscTab:CreateButton({
    Name = "Fly Script",
    Info = "Enables a basic fly script.",
    Callback = function()
        local player = game.Players.LocalPlayer
        local mouse = player:GetMouse()
        local flying = false
        local speed = 50

        local bodyGyro = Instance.new("BodyGyro")
        local bodyVelocity = Instance.new("BodyVelocity")

        mouse.KeyDown:Connect(function(key)
            if key == "e" then
                flying = not flying
                if flying then
                    local character = player.Character or player.CharacterAdded:Wait()
                    local humanoidRootPart = character:WaitForChild("HumanoidRootPart")
                    bodyGyro.Parent = humanoidRootPart
                    bodyVelocity.Parent = humanoidRootPart
                else
                    bodyGyro:Destroy()
                    bodyVelocity:Destroy()
                end
            end
        end)

        game:GetService("RunService").RenderStepped:Connect(function()
            if flying then
                local character = player.Character or player.CharacterAdded:Wait()
                local humanoidRootPart = character:WaitForChild("HumanoidRootPart")
                bodyGyro.CFrame = humanoidRootPart.CFrame
                bodyVelocity.Velocity = humanoidRootPart.CFrame.LookVector * speed
            end
        end)
    end
})

MiscTab:CreateButton({
    Name = "Speed Boost",
    Info = "Doubles your walk speed.",
    Callback = function()
        local player = game.Players.LocalPlayer
        local humanoid = player.Character and player.Character:FindFirstChildOfClass("Humanoid")
        if humanoid then
            humanoid.WalkSpeed = humanoid.WalkSpeed * 2
            Rayfield:Notify({
                Title = "Speed Boost Activated",
                Content = "Your walk speed has been doubled!",
                Duration = 5
            })
        end
    end
})

MiscTab:CreateButton({
    Name = "Reset Walk Speed",
    Info = "Resets your walk speed to default.",
    Callback = function()
        local player = game.Players.LocalPlayer
        local humanoid = player.Character and player.Character:FindFirstChildOfClass("Humanoid")
        if humanoid then
            humanoid.WalkSpeed = 16
            Rayfield:Notify({
                Title = "Walk Speed Reset",
                Content = "Your walk speed has been reset to default.",
                Duration = 5
            })
        end
    end
})

MiscTab:CreateButton({
    Name = "Clear Workspace",
    Info = "Removes all unnecessary parts from the workspace.",
    Callback = function()
        for _, v in pairs(workspace:GetChildren()) do
            if v:IsA("Part") or (v:IsA("Model") and not v:FindFirstChild("Humanoid")) then
                v:Destroy()
            end
        end
        Rayfield:Notify({
            Title = "Workspace Cleared",
            Content = "Unnecessary parts have been removed.",
            Duration = 5
        })
    end
})


local Button = FeTab:CreateButton({
   Name = "Fe Serverside Executor ",
   Info = "Button info/Description.", -- Speaks for itself, Remove if none.
   Interact = 'Changable',
   Callback = function()
   loadstring(game:HttpGet("https://[Log in to view URL]"))();
   end,
})

local Button = RageTab:CreateButton({
   Name = "Rage servershutdown serverside ",
   Info = "Button info/Description.", -- Speaks for itself, Remove if none.
   Interact = 'Changable',
   Callback = function()
   -- This script will shut down the server after a certain condition or after a specific amount of time

local shutdownDelay = 5 -- Time in seconds before the server shuts down

-- Function to shut down the server
local function shutdownServer()
    print("Server is shutting down...")
    game:Shutdown()  -- Shuts down the server
end

-- Optionally, use a delay before shutting down the server
wait(shutdownDelay)  -- Waits for the specified amount of time
shutdownServer()  -- Calls the function to shut down the server

   end,
})


local Button = RageTab:CreateButton({
   Name = "Rage Gui 😤😈",
   Info = "Button info/Description.", -- Speaks for itself, Remove if none.
   Interact = 'Changable',
   Callback = function()
   https://[Log in to view URL]
   end,
})

Embed on website

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