Yingyang005

Demonic hub V4

Dec 3rd, 2024 (edited)
534
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.55 KB | None | 0 0
  1. -- Charger OrionLib
  2. local OrionLib = loadstring(game:HttpGet('https://raw.githubusercontent.com/shlexware/Orion/main/source'))()
  3.  
  4. -- Définir les paramètres de la fenêtre
  5. local Window = OrionLib:MakeWindow({
  6. Name = "Demonic Hub",
  7. HidePremium = false,
  8. SaveConfig = true,
  9. ConfigFolder = "DemonicHubSaves"
  10. })
  11.  
  12. -- Ajouter un onglet principal
  13. local MainTab = Window:MakeTab({
  14. Name = "Main",
  15. Icon = "rbxassetid://4483345998",
  16. PremiumOnly = false
  17. })
  18.  
  19. -- Ajouter des éléments à l'onglet principal
  20. MainTab:AddLabel("Welcome to Demonic Hub")
  21. MainTab:AddButton({
  22. Name = "Activate Script",
  23. Callback = function()
  24. getgenv().ValidateType = "Key"
  25. loadstring(game:HttpGet("https://raw.githubusercontent.com/Prosexy/Demonic-HUB-V2/main/DemonicHub_V2.lua", true))()
  26. end
  27. })
  28. -- Jeux et leurs URL
  29. local Games = {
  30. [3457700596] = "https://raw.githubusercontent.com/Prosexy/F/main/77_63JDZPIZ1S2C.lua.txt",
  31. [5675104029] = "https://raw.githubusercontent.com/Prosexy/F/main/77_O9Q4G4JOAON8.lua.txt",
  32. [4568630521] = "https://raw.githubusercontent.com/Prosexy/F/main/77_95DF9P7.lua.txt",
  33. [903807016] = "https://raw.githubusercontent.com/Prosexy/F/main/77_903807016.lua.txt",
  34. [1016936714] = "https://raw.githubusercontent.com/Prosexy/F/main/77_1016936714.lua.txt"
  35. -- Ajoutez les autres jeux et URL ici
  36. }
  37.  
  38. -- Afficher les jeux et leurs URL dans l'interface
  39. for gameId, url in pairs(Games) do
  40. MainTab:AddButton({
  41. Name = "Load Game Script " .. gameId,
  42. Callback = function()
  43. loadstring(game:HttpGet(url, true))()
  44. end
  45. })
  46. end
  47.  
  48. -- Charger les modules nécessaires
  49. local moduleQueue = {
  50. Progress = {"https://raw.githubusercontent.com/cheapsk9/progress/main/beta.lua", "Demonic UI Library"}
  51. }
  52. local modules = {}
  53.  
  54. if Games[game.GameId] or Games[game.PlaceId] then
  55. moduleQueue.GameScript = {Games[game.GameId] or Games[game.PlaceId], "This Game's Script"}
  56. else
  57. moduleQueue.Notify = {"https://raw.githubusercontent.com/x9PSwiftz/Panda/main/Notification.lua", "Notification Module"}
  58. moduleQueue.NotificationHolder = {"https://raw.githubusercontent.com/BocusLuke/UI/main/STX/Module.Lua", "Loady Notification Holder"}
  59. moduleQueue.Notification = {"https://raw.githubusercontent.com/BocusLuke/UI/main/STX/Client.Lua", "Loady Notification"}
  60. moduleQueue.Loady = {"https://bitbucket.org/cat__/uis/raw/Loady/Module", "Loady"}
  61. end
  62. -- Fonction pour charger les modules
  63. local function loadUrl(name, module)
  64. modules[name] = loadstring(game:HttpGet(module[1], true))()
  65. loadCurr = loadCurr + 1
  66. if loadCurr == loadGoal then
  67. local LoaderCloseTween = TweenService:Create(LoaderBg, TweenInfo.new(1), {Size = UDim2.fromOffset(0, 200)})
  68. LoaderCloseTween.Completed:Connect(function()
  69. LoaderGui:Destroy()
  70. end)
  71. LoaderCloseTween:Play()
  72. LoadProgress()
  73. end
  74. end
  75.  
  76. -- Initialiser le chargement des modules
  77. local loadGoal = 0
  78. local loadCurr = 0
  79. for _ in next, moduleQueue do
  80. loadGoal = loadGoal + 1
  81. end
  82. for k, v in next, moduleQueue do
  83. coroutine.resume(coroutine.create(loadUrl), k, v)
  84. end
  85. -- Vérifier l'accès à CoreGui et charger le hub
  86. if pcall(function()
  87. local Test = Instance.new("ScreenGui")
  88. Test.Name = "Test"
  89. Test.Parent = game:GetService("CoreGui")
  90. Test:Destroy()
  91. end) then
  92. GuiOfChoice = game:GetService("CoreGui")
  93. LoadHub()
  94. else
  95. local bindable = Instance.new("BindableFunction")
  96. bindable.OnInvoke = function(choice)
  97. if choice == "Yes" then
  98. LoadHub()
  99. end
  100. bindable:Destroy()
  101. bindable = nil
  102. end
  103. GuiOfChoice = game:GetService("Players").LocalPlayer:FindFirstChildOfClass("PlayerGui")
  104. if GuiOfChoice then
  105. game:GetService("StarterGui"):SetCore("SendNotification", {
  106. Title = "Run hub anyway?",
  107. Text = "No access to CoreGui. This may cause problems in games with sensitive anti-cheats.",
  108. Icon = "rbxassetid://16755289922",
  109. Duration = 10,
  110. Callback = bindable,
  111. Button1 = "Yes",
  112. Button2 = "No",
  113. })
  114. else
  115. game:GetService("StarterGui"):SetCore("SendNotification", {
  116. Title = "This is awkward...",
  117. Text = "Looks like the developer of the game decided to troll us by removing PlayerGui. Therefore, we can't run the hub.",
  118. Icon = "rbxassetid://16755289922",
  119. Duration = 10,
  120. })
  121. end
  122. end
  123.  
  124. -- Affichage de la fenêtre
  125. OrionLib:Init()
  126.  
Advertisement
Add Comment
Please, Sign In to add comment