Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local WindowTable = {}
- function WindowTable:CreateWindow(uiname)
- if game:GetService("CoreGui"):FindFirstChild("HowlUiLIb") then
- game:GetService("CoreGui"):FindFirstChild("HowlUiLIb"):Destroy()
- end
- local ScreenGui = Instance.new("ScreenGui")
- local tab = Instance.new("TextLabel")
- local Frame = Instance.new("Frame")
- local UICorner = Instance.new("UICorner")
- local UIListLayout = Instance.new("UIListLayout")
- local Frame_2 = Instance.new("Frame")
- local list = Instance.new("UIListLayout")
- list.Parent = ScreenGui
- list.FillDirection = Enum.FillDirection.Horizontal
- list.SortOrder = Enum.SortOrder.LayoutOrder
- list.Padding = UDim.new(0, 10)
- ScreenGui.Parent = game:GetService("CoreGui")
- ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- ScreenGui.Name = "HowlUiLIb"
- ScreenGui.ResetOnSpawn = false
- tab.Name = "tab"
- tab.Parent = ScreenGui
- tab.BackgroundColor3 = Color3.fromRGB(46, 46, 46)
- tab.BorderSizePixel = 0
- tab.Position = UDim2.new(0.00771604944, 0, 0.0101596517, 0)
- tab.Size = UDim2.new(0, 159, 0, 27)
- tab.ZIndex = 2
- tab.Font = Enum.Font.GothamMedium
- tab.Text = uiname
- tab.TextColor3 = Color3.fromRGB(255, 255, 255)
- tab.TextSize = 11.000
- tab.Active = true
- tab.Draggable = true
- Frame.Parent = tab
- Frame.BackgroundColor3 = Color3.fromRGB(42, 42, 42)
- Frame.BorderSizePixel = 0
- Frame.Position = UDim2.new(0, 0, 1.22222221, 0)
- Frame.Size = UDim2.new(0, 159, 0, 234)
- Frame.ZIndex = 2
- UICorner.Parent = Frame
- UIListLayout.Parent = Frame
- UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
- UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
- UIListLayout.Padding = UDim.new(0, 10)
- Frame_2.Parent = tab
- Frame_2.BackgroundColor3 = Color3.fromRGB(42, 42, 42)
- Frame_2.BorderSizePixel = 0
- Frame_2.Position = UDim2.new(0, 0, 1, 0)
- Frame_2.Size = UDim2.new(0, 159, 0, 12)
- Frame_2.ZIndex = 0
- local ButtonHandler = {}
- function ButtonHandler:CreateButton(buttontxt, callback)
- local btn = Instance.new("TextButton")
- btn.Name = buttontxt.."BTN"
- btn.Parent = Frame
- btn.BackgroundColor3 = Color3.fromRGB(42, 42, 42)
- btn.BorderColor3 = Color3.fromRGB(46, 46, 46)
- btn.BorderSizePixel = 2
- btn.Position = UDim2.new(0,0,0)
- btn.Size = UDim2.new(0, 141, 0, 18)
- btn.Font = Enum.Font.GothamMedium
- btn.TextColor3 = Color3.fromRGB(255, 255, 255)
- btn.TextSize = 14.000
- btn.Text = buttontxt
- btn.MouseButton1Up:Connect(callback)
- end
- return ButtonHandler
- end
- return WindowTable
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement