local UI = {} function UI:New(Title) local plrg = game.Players.LocalPlayer.PlayerGui if plrg:FindFirstChild("UiLibTutorial") then plrg.UiLibTutorial:Destroy() end local UiLibTutorial = Instance.new("ScreenGui") local Main = Instance.new("Frame") local UICorner = Instance.new("UICorner") local TopBar = Instance.new("Frame") local UICorner_2 = Instance.new("UICorner") local TobBar = Instance.new("Frame") local TextLabel = Instance.new("TextLabel") local UITextSizeConstraint = Instance.new("UITextSizeConstraint") local Tab = Instance.new("Frame") local UICorner_3 = Instance.new("UICorner") local ScrollFrame = Instance.new("ScrollingFrame") local UIGridLayout = Instance.new("UIGridLayout") local UIListLayout = Instance.new("UIListLayout") UiLibTutorial.Name = "UiLibTutorial" UiLibTutorial.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") UiLibTutorial.ResetOnSpawn = false Main.Name = "Main" Main.Parent = UiLibTutorial Main.BackgroundColor3 = Color3.fromRGB(18, 18, 18) Main.Position = UDim2.new(0.106351554, 0, 0.322352946, 0) Main.Size = UDim2.new(0, 445, 0, 246) Main.Active = true Main.Draggable = true UICorner.Parent = Main TopBar.Name = "TopBar" TopBar.Parent = Main TopBar.BackgroundColor3 = Color3.fromRGB(24, 24, 24) TopBar.Position = UDim2.new(0, 0, -0.00408166414, 0) TopBar.Size = UDim2.new(0, 445, 0, 18) UICorner_2.Parent = TopBar TobBar.Name = "TobBar" TobBar.Parent = TopBar TobBar.BackgroundColor3 = Color3.fromRGB(24, 24, 24) TobBar.BorderSizePixel = 0 TobBar.Position = UDim2.new(0, 0, 0.522646844, 0) TobBar.Size = UDim2.new(0, 445, 0, 14) TextLabel.Parent = TopBar TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255) TextLabel.BackgroundTransparency = 1.000 TextLabel.Position = UDim2.new(0.274157315, 0, 0, 0) TextLabel.Size = UDim2.new(0, 200, 0, 23) TextLabel.ZIndex = 2 TextLabel.Font = Enum.Font.SourceSans TextLabel.Text = Title TextLabel.TextColor3 = Color3.fromRGB(170, 170, 170) TextLabel.TextScaled = true TextLabel.TextSize = 14.000 TextLabel.TextWrapped = true UITextSizeConstraint.Parent = TextLabel UITextSizeConstraint.MaxTextSize = 16 Tab.Name = "Tab" Tab.Parent = Main Tab.BackgroundColor3 = Color3.fromRGB(24, 24, 24) Tab.Position = UDim2.new(0.0338233523, 0, 0.128374174, 0) Tab.Size = UDim2.new(0, 413, 0, 203) UICorner_3.Parent = Tab ScrollFrame.Name = "ScrollFrame" ScrollFrame.Parent = Tab ScrollFrame.Active = true ScrollFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255) ScrollFrame.BackgroundTransparency = 1.000 ScrollFrame.Position = UDim2.new(0.0169491526, 0, 0.0344827585, 0) ScrollFrame.Size = UDim2.new(0, 399, 0, 189) ScrollFrame.ZIndex = 0 ScrollFrame.ScrollBarThickness = 0 UIGridLayout.Parent = ScrollFrame UIGridLayout.SortOrder = Enum.SortOrder.LayoutOrder UIGridLayout.CellSize = UDim2.new(0, 129, 0, 50) UIListLayout.Parent = Tab UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder UIListLayout.VerticalAlignment = Enum.VerticalAlignment.Center local frame = {} function frame:Button(Name,Call) local Button = Instance.new("TextButton") Button.Name = "Button" Button.Parent = ScrollFrame Button.BackgroundColor3 = Color3.fromRGB(20, 20, 20) Button.Position = UDim2.new(0, 0, 1.61468662e-07, 0) Button.Size = UDim2.new(0, 120, 0, 50) Button.Font = Enum.Font.SourceSansLight Button.TextColor3 = Color3.fromRGB(150, 150, 150) Button.TextScaled = true Button.Text = Name Button.TextSize = 26.000 Button.TextWrapped = true local UICorner_4 = Instance.new("UICorner") UICorner_4.Parent = Button local UITextSizeConstraint_2 = Instance.new("UITextSizeConstraint") UITextSizeConstraint_2.Parent = Button UITextSizeConstraint_2.MaxTextSize = 27 Button.MouseButton1Click:Connect(function() pcall(Call) end) end return frame end local main = UI:New("Working!") main:Button("Ha",function() print("Test") end) return UI