asdasdca

Main gui

Jul 29th, 2025
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 9.97 KB | Gaming | 0 0
  1. -- Main GUI Script using Custom Linoria Library
  2. -- Modular structure with modern, colorful, and futuristic design
  3.  
  4. local HttpService = game:GetService("HttpService")
  5. local Players = game:GetService("Players")
  6. local TweenService = game:GetService("TweenService")
  7. local UserInputService = game:GetService("UserInputService")
  8.  
  9. -- Configuration
  10. local CONFIG_PATH = "LinoriaGUI_Config.json"
  11. local API_URL = "https://pastebin.com/raw/YourPastebinLink" -- Replace with your Pastebin URL
  12. local GUI_NAME = "FuturisticLinoriaGUI"
  13.  
  14. -- Initialize Custom Linoria Library
  15. local Library = loadstring(game:HttpGet("https://raw.githubusercontent.com/wally-rblx/LinoriaLib/main/Library.lua"))()
  16. local ThemeManager = loadstring(game:HttpGet("https://raw.githubusercontent.com/wally-rblx/LinoriaLib/main/addons/ThemeManager.lua"))()
  17. local SaveManager = loadstring(game:HttpGet("https://raw.githubusercontent.com/wally-rblx/LinoriaLib/main/addons/SaveManager.lua"))()
  18.  
  19. -- Custom Modified Theme with Futuristic Effects
  20. local CustomThemes = {
  21.     Dark = {
  22.         MainFrame = Color3.fromRGB(20, 20, 30),
  23.         Accent = Color3.fromRGB(0, 170, 255),
  24.         Text = Color3.fromRGB(255, 255, 255),
  25.         Shadow = Color3.fromRGB(0, 0, 0),
  26.         Glow = Color3.fromRGB(0, 255, 255)
  27.     },
  28.     Light = {
  29.         MainFrame = Color3.fromRGB(240, 240, 245),
  30.         Accent = Color3.fromRGB(100, 200, 255),
  31.         Text = Color3.fromRGB(0, 0, 0),
  32.         Shadow = Color3.fromRGB(50, 50, 50),
  33.         Glow = Color3.fromRGB(150, 255, 255)
  34.     }
  35. }
  36.  
  37. -- Key System Module
  38. local KeySystem = {}
  39. function KeySystem:Initialize()
  40.     local success, result = pcall(function()
  41.         local ScreenGui = Instance.new("ScreenGui")
  42.         ScreenGui.Name = GUI_NAME .. "_KeySystem"
  43.         ScreenGui.Parent = game.CoreGui
  44.         ScreenGui.IgnoreGuiInset = true
  45.  
  46.         local MainFrame = Instance.new("Frame")
  47.         MainFrame.Size = UDim2.new(0, 300, 0, 200)
  48.         MainFrame.Position = UDim2.new(0.5, -150, 0.5, -100)
  49.         MainFrame.BackgroundColor3 = CustomThemes.Dark.MainFrame
  50.         MainFrame.BackgroundTransparency = 0.2
  51.         MainFrame.Parent = ScreenGui
  52.         MainFrame.ClipsDescendants = true
  53.  
  54.         -- Futuristic Effects
  55.         local UICorner = Instance.new("UICorner")
  56.         UICorner.CornerRadius = UDim.new(0, 12)
  57.         UICorner.Parent = MainFrame
  58.  
  59.         local Glow = Instance.new("UIStroke")
  60.         Glow.Thickness = 2
  61.         Glow.Color = CustomThemes.Dark.Glow
  62.         Glow.Transparency = 0.5
  63.         Glow.Parent = MainFrame
  64.  
  65.         local Shadow = Instance.new("UIStroke")
  66.         Shadow.Thickness = 4
  67.         Shadow.Color = CustomThemes.Dark.Shadow
  68.         Shadow.Transparency = 0.7
  69.         Shadow.Parent = MainFrame
  70.  
  71.         local KeyInput = Library:CreateTextBox({
  72.             Title = "Enter Key",
  73.             Placeholder = "Paste your key here...",
  74.             Parent = MainFrame,
  75.             Position = UDim2.new(0.5, -100, 0.4, 0),
  76.             Size = UDim2.new(0, 200, 0, 30)
  77.         })
  78.  
  79.         local SubmitButton = Library:CreateButton({
  80.             Title = "Verify Key",
  81.             Parent = MainFrame,
  82.             Position = UDim2.new(0.5, -50, 0.7, 0),
  83.             Size = UDim2.new(0, 100, 0, 30),
  84.             Callback = function()
  85.                 local success, response = pcall(function()
  86.                     local key = KeyInput.Value
  87.                     local validKeys = HttpService:JSONDecode(game:HttpGet(API_URL))
  88.                     if table.find(validKeys, key) then
  89.                         ScreenGui:Destroy()
  90.                         MainGUI:Initialize()
  91.                     else
  92.                         Library:Notify("Invalid Key!", 3)
  93.                     end
  94.                 end)
  95.                 if not success then
  96.                     Library:Notify("Error verifying key: " .. tostring(response), 3)
  97.                 end
  98.             end
  99.         })
  100.  
  101.         -- Animation
  102.         local tweenInfo = TweenInfo.new(0.5, Enum.EasingStyle.Sine, Enum.EasingDirection.Out)
  103.         MainFrame.Position = UDim2.new(0.5, -150, 0.3, -100)
  104.         TweenService:Create(MainFrame, tweenInfo, {Position = UDim2.new(0.5, -150, 0.5, -100)}):Play()
  105.     end)
  106.     if not success then
  107.         Library:Notify("Error initializing KeySystem: " .. tostring(result), 5)
  108.     end
  109. end
  110.  
  111. -- Main GUI Module
  112. local MainGUI = {}
  113. function MainGUI:Initialize()
  114.     local success, result = pcall(function()
  115.         local Window = Library:CreateWindow({
  116.             Title = GUI_NAME,
  117.             Center = true,
  118.             AutoShow = true,
  119.             Size = UDim2.new(0, 600, 0, 400)
  120.         })
  121.  
  122.         -- Apply Futuristic Styling
  123.         local MainFrame = Window.MainFrame
  124.         MainFrame.BackgroundTransparency = 0.1
  125.         local UICorner = Instance.new("UICorner")
  126.         UICorner.CornerRadius = UDim.new(0, 12)
  127.         UICorner.Parent = MainFrame
  128.  
  129.         local Glow = Instance.new("UIStroke")
  130.         Glow.Thickness = 2
  131.         Glow.Color = CustomThemes.Dark.Glow
  132.         Glow.Transparency = 0.5
  133.         Glow.Parent = MainFrame
  134.  
  135.         -- Tabs
  136.         local Tabs = {
  137.             Main = Window:AddTab("Main"),
  138.             Teleport = Window:AddTab("Teleport"),
  139.             Combat = Window:AddTab("Combat"),
  140.             Misc = Window:AddTab("Misc")
  141.         }
  142.  
  143.         -- Main Tab
  144.         local MainGroup = Tabs.Main:AddLeftGroupbox("Main Features")
  145.         MainGroup:AddToggle("AutoFarm", {
  146.             Text = "Auto Farm",
  147.             Default = false,
  148.             Callback = function(state)
  149.                 pcall(function()
  150.                     -- Add your auto farm logic here
  151.                     Library:Notify("Auto Farm: " .. (state and "Enabled" or "Disabled"), 2)
  152.                 end)
  153.             end
  154.         })
  155.  
  156.         -- Teleport Tab
  157.         local TeleportGroup = Tabs.Teleport:AddLeftGroupbox("Teleport Options")
  158.         TeleportGroup:AddDropdown("TeleportLocations", {
  159.             Text = "Select Location",
  160.             Values = {"Spawn", "Safe Zone", "Boss Area"},
  161.             Default = 1,
  162.             Callback = function(value)
  163.                 pcall(function()
  164.                     local player = Players.LocalPlayer
  165.                     local locations = {
  166.                         Spawn = Vector3.new(0, 5, 0),
  167.                         ["Safe Zone"] = Vector3.new(100, 5, 100),
  168.                         ["Boss Area"] = Vector3.new(200, 5, 200)
  169.                     }
  170.                     player.Character.HumanoidRootPart.CFrame = CFrame.new(locations[value])
  171.                     Library:Notify("Teleported to " .. value, 2)
  172.                 end)
  173.             end
  174.         })
  175.  
  176.         -- Combat Tab
  177.         local CombatGroup = Tabs.Combat:AddLeftGroupbox("Combat Features")
  178.         CombatGroup:AddToggle("KillAura", {
  179.             Text = "Kill Aura",
  180.             Default = false,
  181.             Callback = function(state)
  182.                 pcall(function()
  183.                     -- Add kill aura logic here
  184.                     Library:Notify("Kill Aura: " .. (state and "Enabled" or "Disabled"), 2)
  185.                 end)
  186.             end
  187.         })
  188.  
  189.         -- Misc Tab
  190.         local MiscGroup = Tabs.Misc:AddLeftGroupbox("Miscellaneous")
  191.         local ColorPicker = MiscGroup:AddColorPicker("AccentColor", {
  192.             Text = "Accent Color",
  193.             Default = CustomThemes.Dark.Accent,
  194.             Callback = function(color)
  195.                 pcall(function()
  196.                     ThemeManager:SetCustomTheme({Accent = color})
  197.                     Library:Notify("Accent color updated!", 2)
  198.                 end)
  199.             end
  200.         })
  201.  
  202.         local ThemeDropdown = MiscGroup:AddDropdown("ThemeSelector", {
  203.             Text = "Select Theme",
  204.             Values = {"Dark", "Light"},
  205.             Default = 1,
  206.             Callback = function(theme)
  207.                 pcall(function()
  208.                     ThemeManager:SetCustomTheme(CustomThemes[theme])
  209.                     Library:Notify("Theme switched to " .. theme, 2)
  210.                 end)
  211.             end
  212.         })
  213.  
  214.         -- Save/Load Config
  215.         SaveManager:SetLibrary(Library)
  216.         SaveManager:BuildConfigSection(Tabs.Misc)
  217.  
  218.         -- Auto-Hide on Death
  219.         local function checkPlayerDeath()
  220.             local player = Players.LocalPlayer
  221.             if player.Character and player.Character:FindFirstChild("Humanoid") then
  222.                 local humanoid = player.Character.Humanoid
  223.                 humanoid.Died:Connect(function()
  224.                     pcall(function()
  225.                         Window:Hide()
  226.                         humanoid.HealthChanged:Wait()
  227.                         Window:Show()
  228.                     end)
  229.                 end)
  230.             end
  231.         end
  232.         Players.LocalPlayer.CharacterAdded:Connect(checkPlayerDeath)
  233.         checkPlayerDeath()
  234.  
  235.         -- Responsive Design
  236.         local function adjustForResolution()
  237.             local viewportSize = game.Workspace.CurrentCamera.ViewportSize
  238.             local scale = math.min(viewportSize.X / 1920, viewportSize.Y / 1080)
  239.             MainFrame.Size = UDim2.new(0, 600 * scale, 0, 400 * scale)
  240.         end
  241.         game.Workspace.CurrentCamera:GetPropertyChangedSignal("ViewportSize"):Connect(adjustForResolution)
  242.         adjustForResolution()
  243.  
  244.         -- Animated Transitions
  245.         local tweenInfo = TweenInfo.new(0.5, Enum.EasingStyle.Sine, Enum.EasingDirection.Out)
  246.         MainFrame.Position = UDim2.new(0.5, -300, 0.3, -200)
  247.         TweenService:Create(MainFrame, tweenInfo, {Position = UDim2.new(0.5, -300, 0.5, -200)}):Play()
  248.     end)
  249.     if not success then
  250.         Library:Notify("Error initializing GUI: " .. tostring(result), 5)
  251.     end
  252. end
  253.  
  254. -- Initialize GUI
  255. local function init()
  256.     local success, result = pcall(function()
  257.         KeySystem:Initialize()
  258.         ThemeManager:SetLibrary(Library)
  259.         ThemeManager:ApplyTheme("Dark")
  260.         SaveManager:LoadAutoloadConfig()
  261.     end)
  262.     if not success then
  263.         Library:Notify("Error starting GUI: " .. tostring(result), 5)
  264.     end
  265. end
  266.  
  267. init()
Advertisement
Add Comment
Please, Sign In to add comment