Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Fluent = loadstring(game:HttpGet("https://github.com/dawid-scripts/Fluent/releases/latest/download/main.lua"))()
- local SaveManager = loadstring(game:HttpGet("https://raw.githubusercontent.com/dawid-scripts/Fluent/master/Addons/SaveManager.lua"))()
- local InterfaceManager = loadstring(game:HttpGet("https://raw.githubusercontent.com/dawid-scripts/Fluent/master/Addons/InterfaceManager.lua"))()
- local Window = Fluent:CreateWindow({
- Title = "Fluent " .. Fluent.Version,
- SubTitle = "by dawid",
- TabWidth = 160,
- Size = UDim2.fromOffset(580, 460),
- Acrylic = true,
- Theme = "Dark",
- MinimizeKey = Enum.KeyCode.LeftControl
- })
- local Tabs = {
- Main = Window:AddTab({ Title = "Main", Icon = "" }),
- Settings = Window:AddTab({ Title = "Settings", Icon = "settings" })
- }
- local Options = Fluent.Options
- -- Tableau des clés valides
- local validKeys = {
- "ADJDI-DJJE6-DHEH7",
- "ADMINTESTER",
- "CLE3-EXEMPLE"
- }
- -- Lien à copier
- local linkToCopy = "https://link-center.net/1264515/get-yinhub"
- -- Variable pour suivre si l'utilisateur est authentifié
- local isAuthenticated = false
- -- Notification initiale
- Fluent:Notify({
- Title = "Notification",
- Content = "This is a notification",
- SubContent = "SubContent",
- Duration = 5
- })
- Tabs.Main:AddParagraph({
- Title = "Information",
- Content = "Veuillez entrer votre clé pour accéder aux fonctionnalités."
- })
- -- Fonction pour vérifier si une clé est valide
- local function checkKey(inputKey)
- for _, key in ipairs(validKeys) do
- if key == inputKey then
- return true
- end
- end
- return false
- end
- -- Fonction pour exécuter un script après validation
- local function executeScript()
- loadstring(game:HttpGet("https://pastebin.com/raw/dZFASud4"))()
- end
- -- Fonction pour l'entrée de clé
- local function handleKeyInput(inputKey)
- if checkKey(inputKey) then
- isAuthenticated = true
- Fluent:Notify({
- Title = "Succès",
- Content = "Clé valide ! Le script s'exécute...",
- Duration = 5
- })
- -- Exécution du script après validation
- executeScript()
- -- Détruire l'interface GUI
- Window:Destroy()
- else
- Fluent:Notify({
- Title = "Erreur",
- Content = "Clé invalide. Veuillez réessayer.",
- Duration = 5
- })
- end
- end
- local Input = Tabs.Main:AddInput("Entrer votre clé", {
- Title = "Entrer votre clé",
- Default = "",
- Placeholder = "Clé",
- Callback = handleKeyInput
- })
- -- Fonction pour copier le lien
- local function handleCopyLink()
- if isAuthenticated then
- setclipboard(linkToCopy)
- Fluent:Notify({
- Title = "Lien copié",
- Content = "Le lien a été copié dans le presse-papiers !",
- Duration = 5
- })
- else
- Fluent:Notify({
- Title = "Accès refusé",
- Content = "Veuillez entrer une clé valide pour accéder à cette fonctionnalité.",
- Duration = 5
- })
- end
- end
- Tabs.Main:AddButton({
- Title = "Copier le lien",
- Description = "Copier le lien dans le presse-papiers",
- Callback = handleCopyLink
- })
- -- Configuration du gestionnaire de sauvegarde et de l'interface
- SaveManager:SetLibrary(Fluent)
- InterfaceManager:SetLibrary(Fluent)
- SaveManager:IgnoreThemeSettings()
- SaveManager:SetIgnoreIndexes({})
- InterfaceManager:SetFolder("FluentScriptHub")
- SaveManager:SetFolder("FluentScriptHub/specific-game")
- InterfaceManager:BuildInterfaceSection(Tabs.Settings)
- SaveManager:BuildConfigSection(Tabs.Settings)
- Window:SelectTab(1)
- Fluent:Notify({
- Title = "Fluent",
- Content = "The script has been loaded.",
- Duration = 8
- })
- SaveManager:LoadAutoloadConfig()
Advertisement
Add Comment
Please, Sign In to add comment