local ScriptLibrary = {} local TweenService = game:GetService("TweenService") local UserInputService = game:GetService("UserInputService") local CoreGui = game:GetService("CoreGui") local Players = game:GetService("Players") local LocalPlayer = Players.LocalPlayer local function Create(instanceType, properties) local obj = Instance.new(instanceType) for i,v in pairs(properties) do obj[i] = v end return obj end local function Tween(obj, props, speed) TweenService:Create(obj, TweenInfo.new(speed or 0.2, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), props):Play() end function ScriptLibrary:CreateWindow(config) config = config or {} local Name = config.Name or "Script Library" local Subtitle = config.Subtitle or "Premium Interface" local KeySystemEnabled = config.KeySystem ~= nil and config.KeySystem or false local Key = config.Key or "1234" local DiscordLink = config.DiscordLink or "https://discord.gg/example" local DiscordText = config.DiscordText or "Join Discord" if CoreGui:FindFirstChild("FrontendDesignLibrary") then CoreGui:FindFirstChild("FrontendDesignLibrary"):Destroy() end local ScreenGui = Create("ScreenGui", { Name = "FrontendDesignLibrary", Parent = CoreGui, ResetOnSpawn = false, ZIndexBehavior = Enum.ZIndexBehavior.Sibling }) local BackgroundBlur = Create("Frame", { Parent = ScreenGui, BackgroundColor3 = Color3.fromRGB(5, 7, 13), BackgroundTransparency = 0.18, BorderSizePixel = 0, Size = UDim2.new(1, 0, 1, 0), ZIndex = 0 }) local Main = Create("Frame", { Parent = ScreenGui, BackgroundColor3 = Color3.fromRGB(11, 14, 24), BorderSizePixel = 0, Position = UDim2.new(0.5, -295, 0.5, -190), Size = UDim2.new(0, 590, 0, 380), ClipsDescendants = true, ZIndex = 5 }) local MainCorner = Create("UICorner", { Parent = Main, CornerRadius = UDim.new(0, 18) }) local Glow = Create("ImageLabel", { Parent = Main, BackgroundTransparency = 1, Image = "rbxassetid://5028857084", ImageColor3 = Color3.fromRGB(0, 170, 255), ImageTransparency = 0.25, ScaleType = Enum.ScaleType.Slice, SliceCenter = Rect.new(24, 24, 276, 276), Size = UDim2.new(1, 50, 1, 50), Position = UDim2.new(0, -25, 0, -25), ZIndex = 1 }) local TopBar = Create("Frame", { Parent = Main, BackgroundColor3 = Color3.fromRGB(16, 21, 34), BorderSizePixel = 0, Size = UDim2.new(1, 0, 0, 58), ZIndex = 6 }) Create("UICorner", { Parent = TopBar, CornerRadius = UDim.new(0, 18) }) local TopBarFix = Create("Frame", { Parent = TopBar, BackgroundColor3 = Color3.fromRGB(16, 21, 34), BorderSizePixel = 0, Position = UDim2.new(0, 0, 1, -18), Size = UDim2.new(1, 0, 0, 18), ZIndex = 6 }) local AccentLine = Create("Frame", { Parent = Main, BackgroundColor3 = Color3.fromRGB(0, 170, 255), BorderSizePixel = 0, Position = UDim2.new(0, 0, 0, 58), Size = UDim2.new(1, 0, 0, 2), ZIndex = 7 }) local Title = Create("TextLabel", { Parent = TopBar, BackgroundTransparency = 1, Position = UDim2.new(0, 18, 0, 6), Size = UDim2.new(1, -140, 0, 24), Font = Enum.Font.GothamBlack, Text = Name, TextColor3 = Color3.fromRGB(240, 245, 255), TextSize = 20, TextXAlignment = Enum.TextXAlignment.Left, ZIndex = 8 }) local SubTitleLabel = Create("TextLabel", { Parent = TopBar, BackgroundTransparency = 1, Position = UDim2.new(0, 18, 0, 29), Size = UDim2.new(1, -140, 0, 18), Font = Enum.Font.Gotham, Text = Subtitle, TextColor3 = Color3.fromRGB(135, 150, 180), TextSize = 12, TextXAlignment = Enum.TextXAlignment.Left, ZIndex = 8 }) local MinimizeButton = Create("TextButton", { Parent = TopBar, BackgroundColor3 = Color3.fromRGB(25, 32, 49), BorderSizePixel = 0, Position = UDim2.new(1, -82, 0, 14), Size = UDim2.new(0, 28, 0, 28), Font = Enum.Font.GothamBold, Text = "-", TextColor3 = Color3.fromRGB(255, 255, 255), TextSize = 18, AutoButtonColor = false, ZIndex = 8 }) Create("UICorner", { Parent = MinimizeButton, CornerRadius = UDim.new(0, 8) }) local CloseButton = Create("TextButton", { Parent = TopBar, BackgroundColor3 = Color3.fromRGB(40, 22, 28), BorderSizePixel = 0, Position = UDim2.new(1, -46, 0, 14), Size = UDim2.new(0, 28, 0, 28), Font = Enum.Font.GothamBold, Text = "×", TextColor3 = Color3.fromRGB(255, 120, 120), TextSize = 18, AutoButtonColor = false, ZIndex = 8 }) Create("UICorner", { Parent = CloseButton, CornerRadius = UDim.new(0, 8) }) local Container = Create("ScrollingFrame", { Parent = Main, Active = true, AutomaticCanvasSize = Enum.AutomaticSize.Y, BackgroundTransparency = 1, BorderSizePixel = 0, Position = UDim2.new(0, 14, 0, 72), Size = UDim2.new(1, -28, 1, -86), CanvasSize = UDim2.new(0, 0, 0, 0), ScrollBarImageColor3 = Color3.fromRGB(0, 170, 255), ScrollBarThickness = 3, ZIndex = 6 }) local Layout = Create("UIListLayout", { Parent = Container, Padding = UDim.new(0, 10), SortOrder = Enum.SortOrder.LayoutOrder }) local Padding = Create("UIPadding", { Parent = Container, PaddingLeft = UDim.new(0, 4), PaddingRight = UDim.new(0, 4), PaddingTop = UDim.new(0, 4), PaddingBottom = UDim.new(0, 10) }) local MobileOpen = Create("TextButton", { Parent = ScreenGui, BackgroundColor3 = Color3.fromRGB(0, 170, 255), BorderSizePixel = 0, Position = UDim2.new(0, 20, 0.5, -25), Size = UDim2.new(0, 50, 0, 50), Font = Enum.Font.GothamBlack, Text = "UI", TextColor3 = Color3.fromRGB(255, 255, 255), TextSize = 16, Visible = false, ZIndex = 20, AutoButtonColor = false }) Create("UICorner", { Parent = MobileOpen, CornerRadius = UDim.new(1, 0) }) local dragging = false local dragInput, dragStart, startPos local function updateDrag(input) local delta = input.Position - dragStart Main.Position = UDim2.new( startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y ) end TopBar.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then dragging = true dragStart = input.Position startPos = Main.Position input.Changed:Connect(function() if input.UserInputState == Enum.UserInputState.End then dragging = false end end) end end) TopBar.InputChanged:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then dragInput = input end end) UserInputService.InputChanged:Connect(function(input) if input == dragInput and dragging then updateDrag(input) end end) CloseButton.MouseButton1Click:Connect(function() ScreenGui:Destroy() end) local Minimized = false MinimizeButton.MouseButton1Click:Connect(function() Minimized = not Minimized if Minimized then Tween(Main, {Size = UDim2.new(0, 590, 0, 58)}, 0.25) Container.Visible = false MobileOpen.Visible = true else Tween(Main, {Size = UDim2.new(0, 590, 0, 380)}, 0.25) task.wait(0.1) Container.Visible = true MobileOpen.Visible = false end end) MobileOpen.MouseButton1Click:Connect(function() Minimized = false Tween(Main, {Size = UDim2.new(0, 590, 0, 380)}, 0.25) task.wait(0.1) Container.Visible = true MobileOpen.Visible = false end) local Library = {} local Unlocked = not KeySystemEnabled local KeyFrame if KeySystemEnabled then KeyFrame = Create("Frame", { Parent = ScreenGui, BackgroundColor3 = Color3.fromRGB(10, 13, 22), BorderSizePixel = 0, Position = UDim2.new(0.5, -170, 0.5, -105), Size = UDim2.new(0, 340, 0, 210), ZIndex = 50 }) Create("UICorner", { Parent = KeyFrame, CornerRadius = UDim.new(0, 18) }) local KeyGlow = Create("ImageLabel", { Parent = KeyFrame, BackgroundTransparency = 1, Image = "rbxassetid://5028857084", ImageColor3 = Color3.fromRGB(0, 170, 255), ImageTransparency = 0.3, ScaleType = Enum.ScaleType.Slice, SliceCenter = Rect.new(24, 24, 276, 276), Size = UDim2.new(1, 60, 1, 60), Position = UDim2.new(0, -30, 0, -30), ZIndex = 49 }) local KeyTitle = Create("TextLabel", { Parent = KeyFrame, BackgroundTransparency = 1, Position = UDim2.new(0, 18, 0, 18), Size = UDim2.new(1, -36, 0, 28), Font = Enum.Font.GothamBlack, Text = "ACCESS PANEL", TextColor3 = Color3.fromRGB(245, 248, 255), TextSize = 22, TextXAlignment = Enum.TextXAlignment.Left, ZIndex = 51 }) local KeySub = Create("TextLabel", { Parent = KeyFrame, BackgroundTransparency = 1, Position = UDim2.new(0, 18, 0, 45), Size = UDim2.new(1, -36, 0, 18), Font = Enum.Font.Gotham, Text = "Enter your key to continue", TextColor3 = Color3.fromRGB(130, 145, 175), TextSize = 12, TextXAlignment = Enum.TextXAlignment.Left, ZIndex = 51 }) local KeyBox = Create("TextBox", { Parent = KeyFrame, BackgroundColor3 = Color3.fromRGB(18, 24, 39), BorderSizePixel = 0, Position = UDim2.new(0, 18, 0, 78), Size = UDim2.new(1, -36, 0, 42), Font = Enum.Font.Gotham, PlaceholderText = "Enter key...", Text = "", TextColor3 = Color3.fromRGB(255, 255, 255), PlaceholderColor3 = Color3.fromRGB(95, 110, 140), TextSize = 14, ZIndex = 51 }) Create("UICorner", { Parent = KeyBox, CornerRadius = UDim.new(0, 12) }) local SubmitKey = Create("TextButton", { Parent = KeyFrame, BackgroundColor3 = Color3.fromRGB(0, 170, 255), BorderSizePixel = 0, Position = UDim2.new(0, 18, 0, 132), Size = UDim2.new(0.5, -24, 0, 40), Font = Enum.Font.GothamBold, Text = "Unlock", TextColor3 = Color3.fromRGB(255, 255, 255), TextSize = 14, AutoButtonColor = false, ZIndex = 51 }) Create("UICorner", { Parent = SubmitKey, CornerRadius = UDim.new(0, 12) }) local CopyDiscord = Create("TextButton", { Parent = KeyFrame, BackgroundColor3 = Color3.fromRGB(20, 27, 42), BorderSizePixel = 0, Position = UDim2.new(0.5, 6, 0, 132), Size = UDim2.new(0.5, -24, 0, 40), Font = Enum.Font.GothamBold, Text = "Discord", TextColor3 = Color3.fromRGB(200, 220, 255), TextSize = 14, AutoButtonColor = false, ZIndex = 51 }) Create("UICorner", { Parent = CopyDiscord, CornerRadius = UDim.new(0, 12) }) local Status = Create("TextLabel", { Parent = KeyFrame, BackgroundTransparency = 1, Position = UDim2.new(0, 18, 1, -28), Size = UDim2.new(1, -36, 0, 18), Font = Enum.Font.Gotham, Text = "", TextColor3 = Color3.fromRGB(255, 120, 120), TextSize = 12, TextXAlignment = Enum.TextXAlignment.Left, ZIndex = 51 }) Main.Visible = false SubmitKey.MouseEnter:Connect(function() Tween(SubmitKey, {BackgroundColor3 = Color3.fromRGB(20, 190, 255)}, 0.15) end) SubmitKey.MouseLeave:Connect(function() Tween(SubmitKey, {BackgroundColor3 = Color3.fromRGB(0, 170, 255)}, 0.15) end) CopyDiscord.MouseEnter:Connect(function() Tween(CopyDiscord, {BackgroundColor3 = Color3.fromRGB(30, 38, 57)}, 0.15) end) CopyDiscord.MouseLeave:Connect(function() Tween(CopyDiscord, {BackgroundColor3 = Color3.fromRGB(20, 27, 42)}, 0.15) end) CopyDiscord.MouseButton1Click:Connect(function() if setclipboard then setclipboard(DiscordLink) Status.TextColor3 = Color3.fromRGB(100, 255, 150) Status.Text = "Discord link copied to clipboard" else Status.TextColor3 = Color3.fromRGB(255, 200, 120) Status.Text = "Clipboard not supported by this executor" end end) SubmitKey.MouseButton1Click:Connect(function() if KeyBox.Text == Key then Unlocked = true KeyFrame:Destroy() Main.Visible = true else Status.TextColor3 = Color3.fromRGB(255, 120, 120) Status.Text = "Invalid key" end end) end local function CreateCard(height) local Card = Create("Frame", { Parent = Container, BackgroundColor3 = Color3.fromRGB(16, 20, 32), BorderSizePixel = 0, Size = UDim2.new(1, -4, 0, height), ZIndex = 6 }) Create("UICorner", { Parent = Card, CornerRadius = UDim.new(0, 14) }) local Stroke = Create("UIStroke", { Parent = Card, Color = Color3.fromRGB(32, 40, 62), Transparency = 0.15, Thickness = 1 }) return Card, Stroke end function Library:Notify(title, text, duration) duration = duration or 3 local NotifyFrame = Create("Frame", { Parent = ScreenGui, BackgroundColor3 = Color3.fromRGB(12, 16, 28), BorderSizePixel = 0, Position = UDim2.new(1, 320, 1, -95), Size = UDim2.new(0, 290, 0, 74), ZIndex = 100 }) Create("UICorner", { Parent = NotifyFrame, CornerRadius = UDim.new(0, 16) }) Create("UIStroke", { Parent = NotifyFrame, Color = Color3.fromRGB(0, 170, 255), Thickness = 1 }) local NotifyTitle = Create("TextLabel", { Parent = NotifyFrame, BackgroundTransparency = 1, Position = UDim2.new(0, 14, 0, 10), Size = UDim2.new(1, -28, 0, 20), Font = Enum.Font.GothamBold, Text = title or "Notification", TextColor3 = Color3.fromRGB(255, 255, 255), TextSize = 15, TextXAlignment = Enum.TextXAlignment.Left, ZIndex = 101 }) local NotifyText = Create("TextLabel", { Parent = NotifyFrame, BackgroundTransparency = 1, Position = UDim2.new(0, 14, 0, 31), Size = UDim2.new(1, -28, 0, 30), Font = Enum.Font.Gotham, Text = text or "", TextWrapped = true, TextColor3 = Color3.fromRGB(170, 185, 210), TextSize = 12, TextXAlignment = Enum.TextXAlignment.Left, TextYAlignment = Enum.TextYAlignment.Top, ZIndex = 101 }) Tween(NotifyFrame, {Position = UDim2.new(1, -305, 1, -95)}, 0.25) task.delay(duration, function() Tween(NotifyFrame, {Position = UDim2.new(1, 320, 1, -95)}, 0.25) task.wait(0.3) NotifyFrame:Destroy() end) end function Library:AddSection(text) local SectionFrame = Create("Frame", { Parent = Container, BackgroundTransparency = 1, Size = UDim2.new(1, -4, 0, 28), ZIndex = 6 }) local SectionLabel = Create("TextLabel", { Parent = SectionFrame, BackgroundTransparency = 1, Size = UDim2.new(1, 0, 1, 0), Font = Enum.Font.GothamBlack, Text = text or "SECTION", TextColor3 = Color3.fromRGB(0, 170, 255), TextSize = 14, TextXAlignment = Enum.TextXAlignment.Left, ZIndex = 7 }) end function Library:AddLabel(text) local Card = CreateCard(42) local Label = Create("TextLabel", { Parent = Card, BackgroundTransparency = 1, Position = UDim2.new(0, 14, 0, 0), Size = UDim2.new(1, -28, 1, 0), Font = Enum.Font.Gotham, Text = text or "Label", TextColor3 = Color3.fromRGB(230, 235, 245), TextSize = 14, TextXAlignment = Enum.TextXAlignment.Left, ZIndex = 7 }) end function Library:AddButton(config) config = config or {} local Card, Stroke = CreateCard(54) local Button = Create("TextButton", { Parent = Card, BackgroundTransparency = 1, Size = UDim2.new(1, 0, 1, 0), Font = Enum.Font.GothamBold, Text = "", AutoButtonColor = false, ZIndex = 7 }) local TitleText = Create("TextLabel", { Parent = Card, BackgroundTransparency = 1, Position = UDim2.new(0, 14, 0, 8), Size = UDim2.new(1, -28, 0, 18), Font = Enum.Font.GothamBold, Text = config.Name or "Button", TextColor3 = Color3.fromRGB(255, 255, 255), TextSize = 14, TextXAlignment = Enum.TextXAlignment.Left, ZIndex = 8 }) local DescText = Create("TextLabel", { Parent = Card, BackgroundTransparency = 1, Position = UDim2.new(0, 14, 0, 26), Size = UDim2.new(1, -28, 0, 16), Font = Enum.Font.Gotham, Text = config.Description or "Click to run action", TextColor3 = Color3.fromRGB(135, 150, 180), TextSize = 11, TextXAlignment = Enum.TextXAlignment.Left, ZIndex = 8 }) Button.MouseEnter:Connect(function() Tween(Card, {BackgroundColor3 = Color3.fromRGB(20, 26, 41)}, 0.15) Tween(Stroke, {Color = Color3.fromRGB(0, 170, 255)}, 0.15) end) Button.MouseLeave:Connect(function() Tween(Card, {BackgroundColor3 = Color3.fromRGB(16, 20, 32)}, 0.15) Tween(Stroke, {Color = Color3.fromRGB(32, 40, 62)}, 0.15) end) Button.MouseButton1Click:Connect(function() if config.Callback then pcall(config.Callback) end end) end function Library:AddToggle(config) config = config or {} local state = config.Default or false local Card, Stroke = CreateCard(58) local ToggleButton = Create("TextButton", { Parent = Card, BackgroundTransparency = 1, Size = UDim2.new(1, 0, 1, 0), Text = "", AutoButtonColor = false, ZIndex = 7 }) local TitleText = Create("TextLabel", { Parent = Card, BackgroundTransparency = 1, Position = UDim2.new(0, 14, 0, 8), Size = UDim2.new(1, -88, 0, 18), Font = Enum.Font.GothamBold, Text = config.Name or "Toggle", TextColor3 = Color3.fromRGB(255, 255, 255), TextSize = 14, TextXAlignment = Enum.TextXAlignment.Left, ZIndex = 8 }) local DescText = Create("TextLabel", { Parent = Card, BackgroundTransparency = 1, Position = UDim2.new(0, 14, 0, 27), Size = UDim2.new(1, -88, 0, 16), Font = Enum.Font.Gotham, Text = config.Description or "Enable or disable feature", TextColor3 = Color3.fromRGB(135, 150, 180), TextSize = 11, TextXAlignment = Enum.TextXAlignment.Left, ZIndex = 8 }) local ToggleBack = Create("Frame", { Parent = Card, BackgroundColor3 = state and Color3.fromRGB(0, 170, 255) or Color3.fromRGB(40, 48, 67), BorderSizePixel = 0, Position = UDim2.new(1, -62, 0.5, -11), Size = UDim2.new(0, 44, 0, 22), ZIndex = 8 }) Create("UICorner", { Parent = ToggleBack, CornerRadius = UDim.new(1, 0) }) local ToggleCircle = Create("Frame", { Parent = ToggleBack, BackgroundColor3 = Color3.fromRGB(255, 255, 255), BorderSizePixel = 0, Position = state and UDim2.new(1, -20, 0, 2) or UDim2.new(0, 2, 0, 2), Size = UDim2.new(0, 18, 0, 18), ZIndex = 9 }) Create("UICorner", { Parent = ToggleCircle, CornerRadius = UDim.new(1, 0) }) local function SetToggle(bool) state = bool Tween(ToggleBack, { BackgroundColor3 = state and Color3.fromRGB(0, 170, 255) or Color3.fromRGB(40, 48, 67) }, 0.18) Tween(ToggleCircle, { Position = state and UDim2.new(1, -20, 0, 2) or UDim2.new(0, 2, 0, 2) }, 0.18) if config.Callback then pcall(config.Callback, state) end end ToggleButton.MouseEnter:Connect(function() Tween(Card, {BackgroundColor3 = Color3.fromRGB(20, 26, 41)}, 0.15) Tween(Stroke, {Color = Color3.fromRGB(0, 170, 255)}, 0.15) end) ToggleButton.MouseLeave:Connect(function() Tween(Card, {BackgroundColor3 = Color3.fromRGB(16, 20, 32)}, 0.15) Tween(Stroke, {Color = Color3.fromRGB(32, 40, 62)}, 0.15) end) ToggleButton.MouseButton1Click:Connect(function() SetToggle(not state) end) return { Set = SetToggle, Get = function() return state end } end function Library:AddDiscordButton(config) config = config or {} local Card, Stroke = CreateCard(54) local Button = Create("TextButton", { Parent = Card, BackgroundTransparency = 1, Size = UDim2.new(1, 0, 1, 0), Text = "", AutoButtonColor = false, ZIndex = 7 }) local TitleText = Create("TextLabel", { Parent = Card, BackgroundTransparency = 1, Position = UDim2.new(0, 14, 0, 8), Size = UDim2.new(1, -28, 0, 18), Font = Enum.Font.GothamBold, Text = config.Name or DiscordText, TextColor3 = Color3.fromRGB(255, 255, 255), TextSize = 14, TextXAlignment = Enum.TextXAlignment.Left, ZIndex = 8 }) local DescText = Create("TextLabel", { Parent = Card, BackgroundTransparency = 1, Position = UDim2.new(0, 14, 0, 26), Size = UDim2.new(1, -28, 0, 16), Font = Enum.Font.Gotham, Text = config.Description or "Copy invite link to clipboard", TextColor3 = Color3.fromRGB(135, 150, 180), TextSize = 11, TextXAlignment = Enum.TextXAlignment.Left, ZIndex = 8 }) Button.MouseEnter:Connect(function() Tween(Card, {BackgroundColor3 = Color3.fromRGB(20, 26, 41)}, 0.15) Tween(Stroke, {Color = Color3.fromRGB(88, 101, 242)}, 0.15) end) Button.MouseLeave:Connect(function() Tween(Card, {BackgroundColor3 = Color3.fromRGB(16, 20, 32)}, 0.15) Tween(Stroke, {Color = Color3.fromRGB(32, 40, 62)}, 0.15) end) Button.MouseButton1Click:Connect(function() local link = config.Link or DiscordLink if setclipboard then setclipboard(link) Library:Notify("Discord", "Invite copied to clipboard", 3) else Library:Notify("Discord", "Clipboard not supported", 3) end if config.Callback then pcall(config.Callback, link) end end) end function Library:AddKeybind(config) config = config or {} local CurrentKey = config.Default or Enum.KeyCode.RightControl local WaitingForBind = false local Card, Stroke = CreateCard(58) local TitleText = Create("TextLabel", { Parent = Card, BackgroundTransparency = 1, Position = UDim2.new(0, 14, 0, 8), Size = UDim2.new(1, -140, 0, 18), Font = Enum.Font.GothamBold, Text = config.Name or "UI Keybind", TextColor3 = Color3.fromRGB(255, 255, 255), TextSize = 14, TextXAlignment = Enum.TextXAlignment.Left, ZIndex = 8 }) local DescText = Create("TextLabel", { Parent = Card, BackgroundTransparency = 1, Position = UDim2.new(0, 14, 0, 27), Size = UDim2.new(1, -140, 0, 16), Font = Enum.Font.Gotham, Text = config.Description or "Click to change keybind", TextColor3 = Color3.fromRGB(135, 150, 180), TextSize = 11, TextXAlignment = Enum.TextXAlignment.Left, ZIndex = 8 }) local BindButton = Create("TextButton", { Parent = Card, BackgroundColor3 = Color3.fromRGB(24, 31, 48), BorderSizePixel = 0, Position = UDim2.new(1, -100, 0.5, -15), Size = UDim2.new(0, 84, 0, 30), Font = Enum.Font.GothamBold, Text = CurrentKey.Name, TextColor3 = Color3.fromRGB(255, 255, 255), TextSize = 12, AutoButtonColor = false, ZIndex = 8 }) Create("UICorner", { Parent = BindButton, CornerRadius = UDim.new(0, 10) }) BindButton.MouseButton1Click:Connect(function() if WaitingForBind then return end WaitingForBind = true BindButton.Text = "..." end) UserInputService.InputBegan:Connect(function(input, gpe) if gpe then return end if WaitingForBind and input.KeyCode ~= Enum.KeyCode.Unknown then CurrentKey = input.KeyCode BindButton.Text = CurrentKey.Name WaitingForBind = false if config.OnChanged then pcall(config.OnChanged, CurrentKey) end return end if input.KeyCode == CurrentKey then Main.Visible = not Main.Visible if not Main.Visible then MobileOpen.Visible = true else MobileOpen.Visible = false end if config.Callback then pcall(config.Callback, Main.Visible) end end end) end Library.Main = Main Library.ScreenGui = ScreenGui Library.Container = Container Library.Unlocked = function() return Unlocked end return Library end return ScriptLibrary