Advertisement
Thecodeeasar

Untitled

Oct 14th, 2024
21
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.72 KB | None | 0 0
  1. local OrionLib = loadstring(game:HttpGet(('https://raw.githubusercontent.com/shlexware/Orion/main/source')))()
  2. local Window = OrionLib:MakeWindow({Name = "Universal Hub by wutdahell510 on Roblox", HidePremium = false, SaveConfig = true, ConfigFolder = "SaveConfig"})
  3.  
  4. local function isOwner()
  5. return game.Players.LocalPlayer.Name:lower() == "wutdahell510"
  6. end
  7.  
  8. local function getUserStatus(player)
  9. -- This function should be replaced with your actual logic to determine user status
  10. -- For now, it randomly assigns a status for demonstration purposes
  11. local statuses = {"No Rank", "Premium", "Content Creator"}
  12. return statuses[math.random(1, #statuses)]
  13. end
  14.  
  15. local function updateUserDatabase()
  16. local userDatabase = {}
  17. for _, player in pairs(game.Players:GetPlayers()) do
  18. userDatabase[player.Name] = {
  19. Status = getUserStatus(player),
  20. JoinTime = os.date("%Y-%m-%d %H:%M:%S"),
  21. InDiscord = false -- Always false for now
  22. }
  23. end
  24. return userDatabase
  25. end
  26.  
  27. -- Create the Databases tab only for the owner
  28. if isOwner() then
  29. local DatabasesTab = Window:MakeTab({
  30. Name = "Databases",
  31. Icon = "rbxassetid://4483345998",
  32. PremiumOnly = false
  33. })
  34.  
  35. DatabasesTab:AddButton({
  36. Name = "View All Users",
  37. Callback = function()
  38. local userDatabase = updateUserDatabase()
  39. for username, data in pairs(userDatabase) do
  40. print(string.format("User: %s, Status: %s, Join Time: %s, In Discord: %s",
  41. username, data.Status, data.JoinTime, tostring(data.InDiscord)))
  42. end
  43. end
  44. })
  45. end
  46.  
  47. -- Example usage in other tabs
  48. local PremiumTab = Window:MakeTab({
  49. Name = "Premium Scripts",
  50. Icon = "rbxassetid://4483345998",
  51. PremiumOnly = false
  52. })
  53.  
  54. PremiumTab:AddButton({
  55. Name = "Premium Feature",
  56. Callback = function()
  57. local status = getUserStatus(game.Players.LocalPlayer)
  58. if status == "Premium" or isOwner() then
  59. print("Premium feature activated")
  60. else
  61. print("This feature is for Premium users only.")
  62. end
  63. end
  64. })
  65.  
  66. local ContentCreatorTab = Window:MakeTab({
  67. Name = "Content Creator Scripts",
  68. Icon = "rbxassetid://4483345998",
  69. PremiumOnly = false
  70. })
  71.  
  72. ContentCreatorTab:AddButton({
  73. Name = "Content Creator Feature",
  74. Callback = function()
  75. local status = getUserStatus(game.Players.LocalPlayer)
  76. if status == "Content Creator" or isOwner() then
  77. print("Content Creator feature activated")
  78. else
  79. print("This feature is for Content Creators only.")
  80. end
  81. end
  82. })
  83.  
  84. OrionLib:Init()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement