Yingyang005

Test 2

Dec 9th, 2024 (edited)
1,908
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.99 KB | None | 0 0
  1. -- Chargement de la bibliothèque OrionLib
  2. local OrionLib = loadstring(game:HttpGet(('https://raw.githubusercontent.com/shlexware/Orion/main/source')))()
  3.  
  4. -- Tableau des clés valides
  5. local validKeys = {
  6. "PLD8S-DJD78-SJZF7",
  7. "ADMINTESTER",
  8. "goatowner"
  9. }
  10.  
  11. -- Lien à copier
  12. local linkToCopy = "https://link-center.net/1264515/get-yinhub"
  13.  
  14. -- Variable pour suivre si l'utilisateur est authentifié
  15. local isAuthenticated = true
  16.  
  17. -- Fonction pour vérifier si une clé est valide
  18. local function checkKey(inputKey)
  19. for _, key in ipairs(validKeys) do
  20. if key == inputKey then
  21. return true
  22. end
  23. end
  24. return false
  25. end
  26.  
  27. -- Fonction pour exécuter un script après validation
  28. local function executeScript()
  29. loadstring(game:HttpGet("https://pastebin.com/raw/DeTL1MwL"))()
  30. end
  31.  
  32. -- Création de la fenêtre principale
  33. local Window = OrionLib:MakeWindow({Name = "Key System", HidePremium = false, SaveConfig = true, ConfigFolder = "KeySystem"})
  34.  
  35. -- Création de l'onglet pour la saisie de clé
  36. local KeyTab = Window:MakeTab({
  37. Name = "Authentification",
  38. Icon = "rbxassetid://4483345998",
  39. PremiumOnly = false
  40. })
  41.  
  42. -- Section pour entrer une clé
  43. KeyTab:AddTextbox({
  44. Name = "Entrer votre clé",
  45. Default = "",
  46. TextDisappear = true,
  47. Callback = function(inputKey)
  48. if checkKey(inputKey) then
  49. isAuthenticated = true
  50. OrionLib:MakeNotification({
  51. Name = "Succès",
  52. Content = "Clé valide ! Le script s'exécute...",
  53. Image = "rbxassetid://4483345998",
  54. Time = 5
  55. })
  56. -- Exécution du script après validation
  57. executeScript()
  58. else
  59. OrionLib:MakeNotification({
  60. Name = "Erreur",
  61. Content = "Clé invalide. Veuillez réessayer.",
  62. Image = "rbxassetid://4483345998",
  63. Time = 5
  64. })
  65. end
  66. end
  67. })
  68.  
  69. -- Création d'un onglet pour les outils
  70. local ToolsTab = Window:MakeTab({
  71. Name = "Outils",
  72. Icon = "rbxassetid://4483345998",
  73. PremiumOnly = false
  74. })
  75.  
  76. -- Ajout d'un bouton pour copier le lien, disponible uniquement si authentifié
  77. ToolsTab:AddButton({
  78. Name = "Copier le lien",
  79. Callback = function()
  80. if isAuthenticated then
  81. setclipboard(linkToCopy)
  82. OrionLib:MakeNotification({
  83. Name = "Lien copié",
  84. Content = "Le lien a été copié dans le presse-papiers !",
  85. Image = "rbxassetid://4483345998",
  86. Time = 5
  87. })
  88. else
  89. OrionLib:MakeNotification({
  90. Name = "Accès refusé",
  91. Content = "Veuillez entrer une clé valide pour accéder à cette fonctionnalité.",
  92. Image = "rbxassetid://4483345998",
  93. Time = 5
  94. })
  95. end
  96. end
  97. })
  98.  
  99. -- Initialisation de l'interface
  100. OrionLib:Init()
Advertisement
Add Comment
Please, Sign In to add comment