Advertisement
Thecodeeasar

Untitled

Oct 15th, 2024
18
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.31 KB | None | 0 0
  1. local OrionLib = loadstring(game:HttpGet(('https://raw.githubusercontent.com/shlexware/Orion/main/source')))()
  2.  
  3. -- Key System
  4. local KeyWindow = OrionLib:MakeWindow({Name = "ynaneyt hub Key System", HidePremium = false, SaveConfig = true, ConfigFolder = "ynaneytConfig"})
  5.  
  6. local KeyTab = KeyWindow:MakeTab({
  7. Name = "Key System",
  8. Icon = "rbxassetid://4483345998",
  9. PremiumOnly = false
  10. })
  11.  
  12. KeyTab:AddTextbox({
  13. Name = "Enter Key",
  14. Default = "",
  15. TextDisappear = true,
  16. Callback = function(Value)
  17. if Value == "veryprogamerscript" then -- Replace with your actual key
  18. OrionLib:MakeNotification({
  19. Name = "Success!",
  20. Content = "Correct key entered. Loading hub...",
  21. Image = "rbxassetid://4483345998",
  22. Time = 2
  23. })
  24. KeyWindow:Destroy() -- This will remove the key system window
  25. loadMainHub() -- This function will load your main hub
  26. else
  27. OrionLib:MakeNotification({
  28. Name = "Error!",
  29. Content = "Incorrect key. Please try again.",
  30. Image = "rbxassetid://4483345998",
  31. Time = 5
  32. })
  33. end
  34. end
  35. })
  36.  
  37. KeyTab:AddButton({
  38. Name = "Copy Pastebin URL",
  39. Callback = function()
  40. setclipboard("https://pastebin.com/raw/kPczkY5s")
  41. OrionLib:MakeNotification({
  42. Name = "URL Copied",
  43. Content = "The Pastebin URL has been copied to your clipboard",
  44. Image = "rbxassetid://4483345998",
  45. Time = 5
  46. })
  47. end
  48. })
  49.  
  50. -- Main Hub Function
  51. function loadMainHub()
  52. if not _G.ynaneytData then
  53. _G.ynaneytData = {
  54. users = {},
  55. rank = "no rank",
  56. lastUpdate = 0
  57. }
  58. end
  59.  
  60. local function hasRank(rank)
  61. return _G.ynaneytData.rank == rank
  62. end
  63.  
  64. local function hasPremium()
  65. return hasRank("premium") or hasRank("content creator") or hasRank("owner")
  66. end
  67.  
  68. local function setRank(userId, rank)
  69. if not _G.ynaneytData.users[userId] then
  70. _G.ynaneytData.users[userId] = {}
  71. end
  72. _G.ynaneytData.users[userId].rank = rank
  73. _G.ynaneytData.lastUpdate = os.time()
  74. end
  75.  
  76. local function checkRankUpdates()
  77. local player = game.Players.LocalPlayer
  78. local userId = player.UserId
  79.  
  80. if _G.ynaneytData.users[userId] and _G.ynaneytData.users[userId].rank ~= _G.ynaneytData.rank then
  81. local newRank = _G.ynaneytData.users[userId].rank
  82. _G.ynaneytData.rank = newRank
  83. OrionLib:MakeNotification({
  84. Name = "Rank Updated",
  85. Content = "The owner has given you " .. newRank .. " rank!",
  86. Image = "rbxassetid://4483345998",
  87. Time = 10
  88. })
  89. end
  90. end
  91.  
  92. OrionLib:MakeNotification({
  93. Name = "Bug Reporting",
  94. Content = "If you encounter any bugs, please message wutdahell510onrobloxnewaccount on Discord to report and receive a reward.",
  95. Image = "rbxassetid://4483345998",
  96. Time = 10
  97. })
  98.  
  99. local Window = OrionLib:MakeWindow({Name = "ynaneyt hub", HidePremium = false, SaveConfig = true, ConfigFolder = "ynaneytConfig"})
  100.  
  101. -- Main Section (available to all users)
  102. local MainSection = Window:MakeTab({
  103. Name = "Main Section",
  104. Icon = "rbxassetid://4483345998",
  105. PremiumOnly = false
  106. })
  107.  
  108. MainSection:AddButton({
  109. Name = "Show Rank",
  110. Callback = function()
  111. OrionLib:MakeNotification({
  112. Name = "Your Rank",
  113. Content = "Your current rank is: " .. _G.ynaneytData.rank,
  114. Image = "rbxassetid://4483345998",
  115. Time = 5
  116. })
  117. end
  118. })
  119.  
  120. MainSection:AddButton({
  121. Name = "Anti AFK",
  122. Callback = function()
  123. local vu = game:GetService("VirtualUser")
  124. game:GetService("Players").LocalPlayer.Idled:connect(function()
  125. vu:Button2Down(Vector2.new(0,0),workspace.CurrentCamera.CFrame)
  126. wait(1)
  127. vu:Button2Up(Vector2.new(0,0),workspace.CurrentCamera.CFrame)
  128. end)
  129. OrionLib:MakeNotification({
  130. Name = "Anti AFK",
  131. Content = "Anti AFK has been enabled",
  132. Image = "rbxassetid://4483345998",
  133. Time = 5
  134. })
  135. end
  136. })
  137.  
  138. -- Owner Section
  139. if hasRank("owner") then
  140. local OwnerSection = Window:MakeTab({
  141. Name = "Owner Section",
  142. Icon = "rbxassetid://4483345998",
  143. PremiumOnly = false
  144. })
  145.  
  146. OwnerSection:AddTextbox({
  147. Name = "Set User Rank",
  148. Default = "",
  149. TextDisappear = true,
  150. Callback = function(Value)
  151. local userId, rank = Value:match("(%d+),(%w+)")
  152. if userId and rank then
  153. setRank(tonumber(userId), rank)
  154. OrionLib:MakeNotification({
  155. Name = "Rank Set",
  156. Content = "User " .. userId .. " rank set to " .. rank,
  157. Image = "rbxassetid://4483345998",
  158. Time = 5
  159. })
  160. end
  161. end
  162. })
  163. end
  164.  
  165. -- Content Creator Section
  166. if hasRank("content creator") or hasRank("owner") then
  167. local CCSection = Window:MakeTab({
  168. Name = "Content Creator Section",
  169. Icon = "rbxassetid://4483345998",
  170. PremiumOnly = false
  171. })
  172.  
  173. CCSection:AddButton({
  174. Name = "Notify Feature",
  175. Callback = function()
  176. OrionLib:MakeNotification({
  177. Name = "Coming Soon",
  178. Content = "New features for Content Creators are coming soon!",
  179. Image = "rbxassetid://4483345998",
  180. Time = 5
  181. })
  182. end
  183. })
  184. end
  185.  
  186. -- Premium Section
  187. if hasPremium() then
  188. local PremiumSection = Window:MakeTab({
  189. Name = "Premium Section",
  190. Icon = "rbxassetid://4483345998",
  191. PremiumOnly = false
  192. })
  193.  
  194. PremiumSection:AddButton({
  195. Name = "Anti Kick",
  196. Callback = function()
  197. local mt = getrawmetatable(game)
  198. local old = mt.__namecall
  199. setreadonly(mt, false)
  200. mt.__namecall = newcclosure(function(self, ...)
  201. local method = getnamecallmethod()
  202. if method == "Kick" then
  203. return wait(9e9)
  204. end
  205. return old(self, ...)
  206. end)
  207. setreadonly(mt, true)
  208. OrionLib:MakeNotification({
  209. Name = "Anti Kick",
  210. Content = "Anti Kick has been enabled",
  211. Image = "rbxassetid://4483345998",
  212. Time = 5
  213. })
  214. end
  215. })
  216. end
  217.  
  218. spawn(function()
  219. while wait(5) do
  220. checkRankUpdates()
  221. end
  222. end)
  223. end
  224.  
  225. OrionLib:Init()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement