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

-- Create Main Window
local Window = OrionLib:MakeWindow({
    Name = "Rodan Hub V1",
    HidePremium = false,
    SaveConfig = true,
    ConfigFolder = "OrionTest"
})

-- Services and Player Information
local Players = game:GetService("Players")
local MarketplaceService = game:GetService("MarketplaceService")
local Player = Players.LocalPlayer

local GamePassID = 1004121552 -- Replace with your GamePass ID

-- Function to Check GamePass Ownership
local function checkGamePassOwnership()
    local success, result = pcall(function()
        return MarketplaceService:UserOwnsGamePassAsync(Player.UserId, GamePassID)
    end)
    return success and result
end

-- Premium Ownership Check
local ownsGamePass = checkGamePassOwnership()

-- Function to Display Premium GUI
local function showPremiumGUI()
    local PremiumWindow = OrionLib:MakeWindow({
        Name = "Premium Features",
        HidePremium = false,
        SaveConfig = false,
        ConfigFolder = "PremiumFeatures"
    })

    local PremiumTab = PremiumWindow:MakeTab({
        Name = "Premium",
        Icon = "rbxassetid://4483345998",
        PremiumOnly = false
    })

    PremiumTab:AddSection({
        Name = "Exclusive Scripts"
    })

    -- Add other premium features here...

    PremiumWindow:Init()
end

-- Premium Tab on Main GUI
local PremiumTab = Window:MakeTab({
    Name = "Premium",
    Icon = "rbxassetid://4483345998",
    PremiumOnly = false
})

PremiumTab:AddSection({
    Name = "Unlock Premium Features"
})

PremiumTab:AddButton({
    Name = "Access Premium GUI",
    Callback = function()
        if ownsGamePass then
            print("Accessing Premium Features")
            showPremiumGUI()
        else
            print("Prompting GamePass Purchase")
            MarketplaceService:PromptGamePassPurchase(Player, GamePassID)
        end
    end    
})

-- Handle GamePass Purchase Completion
MarketplaceService.PromptGamePassPurchaseFinished:Connect(function(playerId, purchasedPassId, wasPurchased)
    if playerId == Player.UserId and purchasedPassId == GamePassID and wasPurchased then
        ownsGamePass = true
        print("GamePass purchased successfully!")
        
        OrionLib:MakeNotification({
            Name = "Purchase Successful!",
            Content = "You now have access to premium features!",
            Image = "rbxassetid://4483345998",
            Time = 5
        })
        
        -- Show Premium GUI after successful purchase
        showPremiumGUI()
    end
end)

-- Additional Notification for Non-Premium Users
if not ownsGamePass then
    PremiumTab:AddSection({
        Name = "You need to purchase the Premium GamePass to unlock features."
    })
end

-- Initialize Orion Library
OrionLib:Init()

Embed on website

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