Advertisement
Thecodeeasar

Untitled

Oct 15th, 2024
11
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.62 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. -- Initialize global user database if it doesn't exist
  5. if not _G.users then
  6. _G.users = {}
  7. end
  8.  
  9. local function isOwner()
  10. return game.Players.LocalPlayer.Name:lower() == "wutdahell510"
  11. end
  12.  
  13. local function getUserRank(player)
  14. local playerName = typeof(player) == "string" and player or player.Name
  15. if isOwner() then
  16. return "Owner"
  17. elseif _G.users[playerName] then
  18. return _G.users[playerName].rank
  19. else
  20. return "No Rank"
  21. end
  22. end
  23.  
  24. local function hasAccess(requiredRank)
  25. local playerRank = getUserRank(game.Players.LocalPlayer)
  26. return isOwner() or playerRank == requiredRank or (requiredRank == "Premium" and playerRank == "Content Creator")
  27. end
  28.  
  29. -- Function to add new user or update existing user
  30. local function addOrUpdateUser(username, rank)
  31. if not isOwner() then
  32. _G.users[username] = {
  33. rank = rank or "No Rank",
  34. joinTime = os.date("%Y-%m-%d %H:%M:%S"),
  35. inDiscord = false
  36. }
  37. end
  38. end
  39.  
  40. -- Add current player to users when script is executed
  41. addOrUpdateUser(game.Players.LocalPlayer.Name)
  42.  
  43. -- Update GUI to show current rank
  44. local function updateRankDisplay()
  45. local currentRank = getUserRank(game.Players.LocalPlayer)
  46. OrionLib:MakeNotification({
  47. Name = "Current Rank",
  48. Content = "Your current rank is: " .. currentRank,
  49. Image = "rbxassetid://4483345998",
  50. Time = 5
  51. })
  52. end
  53.  
  54. -- Main Tab
  55. local MainTab = Window:MakeTab({
  56. Name = "Main",
  57. Icon = "rbxassetid://4483345998",
  58. PremiumOnly = false
  59. })
  60.  
  61. MainTab:AddButton({
  62. Name = "Show My Rank",
  63. Callback = function()
  64. updateRankDisplay()
  65. end
  66. })
  67.  
  68. -- No Rank Tab
  69. local NoRankTab = Window:MakeTab({
  70. Name = "No Rank Scripts",
  71. Icon = "rbxassetid://4483345998",
  72. PremiumOnly = false
  73. })
  74.  
  75. NoRankTab:AddButton({
  76. Name = "Anti-AFK",
  77. Callback = function()
  78. loadstring(game:HttpGet("https://raw.githubusercontent.com/NoTwistedHere/Roblox/main/AntiAFK.lua"))()
  79. OrionLib:MakeNotification({
  80. Name = "Anti-AFK",
  81. Content = "Anti-AFK script has been activated",
  82. Image = "rbxassetid://4483345998",
  83. Time = 5
  84. })
  85. end
  86. })
  87.  
  88. NoRankTab:AddButton({
  89. Name = "RemoteSpy",
  90. Callback = function()
  91. loadstring(game:HttpGet("https://github.com/exxtremestuffs/SimpleSpySource/raw/master/SimpleSpy.lua"))()
  92. OrionLib:MakeNotification({
  93. Name = "RemoteSpy",
  94. Content = "RemoteSpy has been activated",
  95. Image = "rbxassetid://4483345998",
  96. Time = 5
  97. })
  98. end
  99. })
  100.  
  101. -- Premium Tab
  102. local PremiumTab = Window:MakeTab({
  103. Name = "Premium Scripts",
  104. Icon = "rbxassetid://4483345998",
  105. PremiumOnly = false
  106. })
  107.  
  108. PremiumTab:AddButton({
  109. Name = "AntiKick",
  110. Callback = function()
  111. if hasAccess("Premium") then
  112. loadstring(game:HttpGet("https://raw.githubusercontent.com/Exunys/Anti-Kick/main/Anti-Kick.lua"))()
  113. OrionLib:MakeNotification({
  114. Name = "AntiKick",
  115. Content = "AntiKick script has been activated",
  116. Image = "rbxassetid://4483345998",
  117. Time = 5
  118. })
  119. else
  120. OrionLib:MakeNotification({
  121. Name = "Access Denied",
  122. Content = "This feature is for Premium users only.",
  123. Image = "rbxassetid://4483345998",
  124. Time = 5
  125. })
  126. end
  127. end
  128. })
  129.  
  130. -- Content Creator Tab
  131. local ContentCreatorTab = Window:MakeTab({
  132. Name = "Content Creator Scripts",
  133. Icon = "rbxassetid://4483345998",
  134. PremiumOnly = false
  135. })
  136.  
  137. ContentCreatorTab:AddButton({
  138. Name = "Coming Soon...",
  139. Callback = function()
  140. print("This feature is coming soon!")
  141. end
  142. })
  143.  
  144. -- Databases Tab (Only for owner)
  145. if isOwner() then
  146. local DatabasesTab = Window:MakeTab({
  147. Name = "Databases",
  148. Icon = "rbxassetid://4483345998",
  149. PremiumOnly = false
  150. })
  151.  
  152. DatabasesTab:AddTextbox({
  153. Name = "Add/Update User Rank",
  154. Default = "",
  155. TextDisappear = false,
  156. Callback = function(username)
  157. DatabasesTab:AddDropdown({
  158. Name = "Select Rank",
  159. Default = "No Rank",
  160. Options = {"No Rank", "Premium", "Content Creator"},
  161. Callback = function(rank)
  162. addOrUpdateUser(username, rank)
  163. print(username .. " rank set to: " .. rank)
  164. OrionLib:MakeNotification({
  165. Name = "Rank Updated",
  166. Content = username .. " rank set to: " .. rank,
  167. Image = "rbxassetid://4483345998",
  168. Time = 5
  169. })
  170. end
  171. })
  172. end
  173. })
  174.  
  175. DatabasesTab:AddButton({
  176. Name = "View All Users",
  177. Callback = function()
  178. print("Owner: " .. game.Players.LocalPlayer.Name .. " (You)")
  179. for username, data in pairs(_G.users) do
  180. print(string.format("User: %s, Rank: %s, Join Time: %s, In Discord: %s",
  181. username, data.rank, data.joinTime, tostring(data.inDiscord)))
  182. end
  183. end
  184. })
  185. end
  186.  
  187. OrionLib:Init()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement