Yingyang005

Pc key système

Dec 11th, 2024 (edited)
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.82 KB | None | 0 0
  1. local Fluent = loadstring(game:HttpGet("https://github.com/dawid-scripts/Fluent/releases/latest/download/main.lua"))()
  2. local SaveManager = loadstring(game:HttpGet("https://raw.githubusercontent.com/dawid-scripts/Fluent/master/Addons/SaveManager.lua"))()
  3. local InterfaceManager = loadstring(game:HttpGet("https://raw.githubusercontent.com/dawid-scripts/Fluent/master/Addons/InterfaceManager.lua"))()
  4.  
  5. local Window = Fluent:CreateWindow({
  6. Title = "Fluent " .. Fluent.Version,
  7. SubTitle = "by dawid",
  8. TabWidth = 160,
  9. Size = UDim2.fromOffset(580, 460),
  10. Acrylic = true,
  11. Theme = "Dark",
  12. MinimizeKey = Enum.KeyCode.LeftControl
  13. })
  14.  
  15. local Tabs = {
  16. Main = Window:AddTab({ Title = "Main", Icon = "" }),
  17. Settings = Window:AddTab({ Title = "Settings", Icon = "settings" })
  18. }
  19.  
  20. local Options = Fluent.Options
  21.  
  22. -- Tableau des clés valides
  23. local validKeys = {
  24. "ADJDI-DJJE6-DHEH7",
  25. "ADMINTESTER",
  26. "CLE3-EXEMPLE"
  27. }
  28.  
  29. -- Lien à copier
  30. local linkToCopy = "https://link-center.net/1264515/get-yinhub"
  31.  
  32. -- Variable pour suivre si l'utilisateur est authentifié
  33. local isAuthenticated = false
  34.  
  35. -- Notification initiale
  36. Fluent:Notify({
  37. Title = "Notification",
  38. Content = "This is a notification",
  39. SubContent = "SubContent",
  40. Duration = 5
  41. })
  42.  
  43. Tabs.Main:AddParagraph({
  44. Title = "Information",
  45. Content = "Veuillez entrer votre clé pour accéder aux fonctionnalités."
  46. })
  47.  
  48. -- Fonction pour vérifier si une clé est valide
  49. local function checkKey(inputKey)
  50. for _, key in ipairs(validKeys) do
  51. if key == inputKey then
  52. return true
  53. end
  54. end
  55. return false
  56. end
  57.  
  58. -- Fonction pour exécuter un script après validation
  59. local function executeScript()
  60. loadstring(game:HttpGet("https://pastebin.com/raw/dZFASud4"))()
  61. end
  62.  
  63. -- Fonction pour l'entrée de clé
  64. local function handleKeyInput(inputKey)
  65. if checkKey(inputKey) then
  66. isAuthenticated = true
  67. Fluent:Notify({
  68. Title = "Succès",
  69. Content = "Clé valide ! Le script s'exécute...",
  70. Duration = 5
  71. })
  72. -- Exécution du script après validation
  73. executeScript()
  74. -- Détruire l'interface GUI
  75. Window:Destroy()
  76. else
  77. Fluent:Notify({
  78. Title = "Erreur",
  79. Content = "Clé invalide. Veuillez réessayer.",
  80. Duration = 5
  81. })
  82. end
  83. end
  84.  
  85. local Input = Tabs.Main:AddInput("Entrer votre clé", {
  86. Title = "Entrer votre clé",
  87. Default = "",
  88. Placeholder = "Clé",
  89. Callback = handleKeyInput
  90. })
  91.  
  92. -- Fonction pour copier le lien
  93. local function handleCopyLink()
  94. if isAuthenticated then
  95. setclipboard(linkToCopy)
  96. Fluent:Notify({
  97. Title = "Lien copié",
  98. Content = "Le lien a été copié dans le presse-papiers !",
  99. Duration = 5
  100. })
  101. else
  102. Fluent:Notify({
  103. Title = "Accès refusé",
  104. Content = "Veuillez entrer une clé valide pour accéder à cette fonctionnalité.",
  105. Duration = 5
  106. })
  107. end
  108. end
  109.  
  110. Tabs.Main:AddButton({
  111. Title = "Copier le lien",
  112. Description = "Copier le lien dans le presse-papiers",
  113. Callback = handleCopyLink
  114. })
  115.  
  116. -- Configuration du gestionnaire de sauvegarde et de l'interface
  117. SaveManager:SetLibrary(Fluent)
  118. InterfaceManager:SetLibrary(Fluent)
  119.  
  120. SaveManager:IgnoreThemeSettings()
  121. SaveManager:SetIgnoreIndexes({})
  122.  
  123. InterfaceManager:SetFolder("FluentScriptHub")
  124. SaveManager:SetFolder("FluentScriptHub/specific-game")
  125.  
  126. InterfaceManager:BuildInterfaceSection(Tabs.Settings)
  127. SaveManager:BuildConfigSection(Tabs.Settings)
  128.  
  129. Window:SelectTab(1)
  130.  
  131. Fluent:Notify({
  132. Title = "Fluent",
  133. Content = "The script has been loaded.",
  134. Duration = 8
  135. })
  136.  
  137. SaveManager:LoadAutoloadConfig()
  138.  
Advertisement
Add Comment
Please, Sign In to add comment