Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local OrionLib = loadstring(game:HttpGet(('https://raw.githubusercontent.com/shlexware/Orion/main/source')))()
- local Window = OrionLib:MakeWindow({Name = "Universal Hub by wutdahell510 on Roblox", HidePremium = false, SaveConfig = true, ConfigFolder = "SaveConfig"})
- local function isOwner()
- return game.Players.LocalPlayer.Name:lower() == "wutdahell510"
- end
- local function getUserStatus(player)
- -- This function should be replaced with your actual logic to determine user status
- -- For now, it randomly assigns a status for demonstration purposes
- local statuses = {"No Rank", "Premium", "Content Creator"}
- return statuses[math.random(1, #statuses)]
- end
- local function updateUserDatabase()
- local userDatabase = {}
- for _, player in pairs(game.Players:GetPlayers()) do
- userDatabase[player.Name] = {
- Status = getUserStatus(player),
- JoinTime = os.date("%Y-%m-%d %H:%M:%S"),
- InDiscord = false -- Always false for now
- }
- end
- return userDatabase
- end
- -- Create the Databases tab only for the owner
- if isOwner() then
- local DatabasesTab = Window:MakeTab({
- Name = "Databases",
- Icon = "rbxassetid://4483345998",
- PremiumOnly = false
- })
- DatabasesTab:AddButton({
- Name = "View All Users",
- Callback = function()
- local userDatabase = updateUserDatabase()
- for username, data in pairs(userDatabase) do
- print(string.format("User: %s, Status: %s, Join Time: %s, In Discord: %s",
- username, data.Status, data.JoinTime, tostring(data.InDiscord)))
- end
- end
- })
- end
- -- Example usage in other tabs
- local PremiumTab = Window:MakeTab({
- Name = "Premium Scripts",
- Icon = "rbxassetid://4483345998",
- PremiumOnly = false
- })
- PremiumTab:AddButton({
- Name = "Premium Feature",
- Callback = function()
- local status = getUserStatus(game.Players.LocalPlayer)
- if status == "Premium" or isOwner() then
- print("Premium feature activated")
- else
- print("This feature is for Premium users only.")
- end
- end
- })
- local ContentCreatorTab = Window:MakeTab({
- Name = "Content Creator Scripts",
- Icon = "rbxassetid://4483345998",
- PremiumOnly = false
- })
- ContentCreatorTab:AddButton({
- Name = "Content Creator Feature",
- Callback = function()
- local status = getUserStatus(game.Players.LocalPlayer)
- if status == "Content Creator" or isOwner() then
- print("Content Creator feature activated")
- else
- print("This feature is for Content Creators only.")
- end
- end
- })
- OrionLib:Init()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement