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"})
- -- Initialize global user database if it doesn't exist
- if not _G.users then
- _G.users = {}
- end
- local function isOwner()
- return game.Players.LocalPlayer.Name:lower() == "wutdahell510"
- end
- local function getUserRank(player)
- local playerName = typeof(player) == "string" and player or player.Name
- if isOwner() then
- return "Owner"
- elseif _G.users[playerName] then
- return _G.users[playerName].rank
- else
- return "No Rank"
- end
- end
- local function hasAccess(requiredRank)
- local playerRank = getUserRank(game.Players.LocalPlayer)
- return isOwner() or playerRank == requiredRank or (requiredRank == "Premium" and playerRank == "Content Creator")
- end
- -- Function to add new user or update existing user
- local function addOrUpdateUser(username, rank)
- if not isOwner() then
- _G.users[username] = {
- rank = rank or "No Rank",
- joinTime = os.date("%Y-%m-%d %H:%M:%S"),
- inDiscord = false
- }
- end
- end
- -- Add current player to users when script is executed
- addOrUpdateUser(game.Players.LocalPlayer.Name)
- -- Update GUI to show current rank
- local function updateRankDisplay()
- local currentRank = getUserRank(game.Players.LocalPlayer)
- OrionLib:MakeNotification({
- Name = "Current Rank",
- Content = "Your current rank is: " .. currentRank,
- Image = "rbxassetid://4483345998",
- Time = 5
- })
- end
- -- Main Tab
- local MainTab = Window:MakeTab({
- Name = "Main",
- Icon = "rbxassetid://4483345998",
- PremiumOnly = false
- })
- MainTab:AddButton({
- Name = "Show My Rank",
- Callback = function()
- updateRankDisplay()
- end
- })
- -- No Rank Tab
- local NoRankTab = Window:MakeTab({
- Name = "No Rank Scripts",
- Icon = "rbxassetid://4483345998",
- PremiumOnly = false
- })
- NoRankTab:AddButton({
- Name = "Anti-AFK",
- Callback = function()
- loadstring(game:HttpGet("https://raw.githubusercontent.com/NoTwistedHere/Roblox/main/AntiAFK.lua"))()
- OrionLib:MakeNotification({
- Name = "Anti-AFK",
- Content = "Anti-AFK script has been activated",
- Image = "rbxassetid://4483345998",
- Time = 5
- })
- end
- })
- NoRankTab:AddButton({
- Name = "RemoteSpy",
- Callback = function()
- loadstring(game:HttpGet("https://github.com/exxtremestuffs/SimpleSpySource/raw/master/SimpleSpy.lua"))()
- OrionLib:MakeNotification({
- Name = "RemoteSpy",
- Content = "RemoteSpy has been activated",
- Image = "rbxassetid://4483345998",
- Time = 5
- })
- end
- })
- -- Premium Tab
- local PremiumTab = Window:MakeTab({
- Name = "Premium Scripts",
- Icon = "rbxassetid://4483345998",
- PremiumOnly = false
- })
- PremiumTab:AddButton({
- Name = "AntiKick",
- Callback = function()
- if hasAccess("Premium") then
- loadstring(game:HttpGet("https://raw.githubusercontent.com/Exunys/Anti-Kick/main/Anti-Kick.lua"))()
- OrionLib:MakeNotification({
- Name = "AntiKick",
- Content = "AntiKick script has been activated",
- Image = "rbxassetid://4483345998",
- Time = 5
- })
- else
- OrionLib:MakeNotification({
- Name = "Access Denied",
- Content = "This feature is for Premium users only.",
- Image = "rbxassetid://4483345998",
- Time = 5
- })
- end
- end
- })
- -- Content Creator Tab
- local ContentCreatorTab = Window:MakeTab({
- Name = "Content Creator Scripts",
- Icon = "rbxassetid://4483345998",
- PremiumOnly = false
- })
- ContentCreatorTab:AddButton({
- Name = "Coming Soon...",
- Callback = function()
- print("This feature is coming soon!")
- end
- })
- -- Databases Tab (Only for owner)
- if isOwner() then
- local DatabasesTab = Window:MakeTab({
- Name = "Databases",
- Icon = "rbxassetid://4483345998",
- PremiumOnly = false
- })
- DatabasesTab:AddTextbox({
- Name = "Add/Update User Rank",
- Default = "",
- TextDisappear = false,
- Callback = function(username)
- DatabasesTab:AddDropdown({
- Name = "Select Rank",
- Default = "No Rank",
- Options = {"No Rank", "Premium", "Content Creator"},
- Callback = function(rank)
- addOrUpdateUser(username, rank)
- print(username .. " rank set to: " .. rank)
- OrionLib:MakeNotification({
- Name = "Rank Updated",
- Content = username .. " rank set to: " .. rank,
- Image = "rbxassetid://4483345998",
- Time = 5
- })
- end
- })
- end
- })
- DatabasesTab:AddButton({
- Name = "View All Users",
- Callback = function()
- print("Owner: " .. game.Players.LocalPlayer.Name .. " (You)")
- for username, data in pairs(_G.users) do
- print(string.format("User: %s, Rank: %s, Join Time: %s, In Discord: %s",
- username, data.rank, data.joinTime, tostring(data.inDiscord)))
- end
- end
- })
- end
- OrionLib:Init()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement