Advertisement
ArmnnHammer

asd

Jun 30th, 2022 (edited)
13
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.70 KB | None | 0 0
  1. local WindowTable = {}
  2.  
  3. function WindowTable:CreateWindow(uiname)
  4. if game:GetService("CoreGui"):FindFirstChild("HowlUiLIb") then
  5. game:GetService("CoreGui"):FindFirstChild("HowlUiLIb"):Destroy()
  6. end
  7. local ScreenGui = Instance.new("ScreenGui")
  8. local tab = Instance.new("TextLabel")
  9. local Frame = Instance.new("Frame")
  10. local UICorner = Instance.new("UICorner")
  11. local UIListLayout = Instance.new("UIListLayout")
  12. local Frame_2 = Instance.new("Frame")
  13. local list = Instance.new("UIListLayout")
  14.  
  15. list.Parent = ScreenGui
  16. list.FillDirection = Enum.FillDirection.Horizontal
  17. list.SortOrder = Enum.SortOrder.LayoutOrder
  18. list.Padding = UDim.new(0, 10)
  19.  
  20.  
  21. ScreenGui.Parent = game:GetService("CoreGui")
  22. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  23. ScreenGui.Name = "HowlUiLIb"
  24. ScreenGui.ResetOnSpawn = false
  25.  
  26. tab.Name = "tab"
  27. tab.Parent = ScreenGui
  28. tab.BackgroundColor3 = Color3.fromRGB(46, 46, 46)
  29. tab.BorderSizePixel = 0
  30. tab.Position = UDim2.new(0.00771604944, 0, 0.0101596517, 0)
  31. tab.Size = UDim2.new(0, 159, 0, 27)
  32. tab.ZIndex = 2
  33. tab.Font = Enum.Font.GothamMedium
  34. tab.Text = uiname
  35. tab.TextColor3 = Color3.fromRGB(255, 255, 255)
  36. tab.TextSize = 11.000
  37. tab.Active = true
  38. tab.Draggable = true
  39.  
  40. Frame.Parent = tab
  41. Frame.BackgroundColor3 = Color3.fromRGB(42, 42, 42)
  42. Frame.BorderSizePixel = 0
  43. Frame.Position = UDim2.new(0, 0, 1.22222221, 0)
  44. Frame.Size = UDim2.new(0, 159, 0, 234)
  45. Frame.ZIndex = 2
  46.  
  47. UICorner.Parent = Frame
  48.  
  49. UIListLayout.Parent = Frame
  50. UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
  51. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  52. UIListLayout.Padding = UDim.new(0, 10)
  53.  
  54. Frame_2.Parent = tab
  55. Frame_2.BackgroundColor3 = Color3.fromRGB(42, 42, 42)
  56. Frame_2.BorderSizePixel = 0
  57. Frame_2.Position = UDim2.new(0, 0, 1, 0)
  58. Frame_2.Size = UDim2.new(0, 159, 0, 12)
  59. Frame_2.ZIndex = 0
  60.  
  61. local ButtonHandler = {}
  62. function ButtonHandler:CreateButton(buttontxt, callback)
  63. local btn = Instance.new("TextButton")
  64. btn.Name = buttontxt.."BTN"
  65. btn.Parent = Frame
  66. btn.BackgroundColor3 = Color3.fromRGB(42, 42, 42)
  67. btn.BorderColor3 = Color3.fromRGB(46, 46, 46)
  68. btn.BorderSizePixel = 2
  69. btn.Position = UDim2.new(0,0,0)
  70. btn.Size = UDim2.new(0, 141, 0, 18)
  71. btn.Font = Enum.Font.GothamMedium
  72. btn.TextColor3 = Color3.fromRGB(255, 255, 255)
  73. btn.TextSize = 14.000
  74. btn.Text = buttontxt
  75. btn.MouseButton1Up:Connect(callback)
  76. end
  77. return ButtonHandler
  78. end
  79. return WindowTable
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement