Advertisement
ArmnnHammer

sad

Jun 29th, 2022 (edited)
11
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.23 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.  
  8. local ScreenGui = Instance.new("ScreenGui")
  9. local main = Instance.new("TextLabel")
  10. local BCG = Instance.new("Frame")
  11. local UICorner = Instance.new("UICorner")
  12. local detail = Instance.new("Frame")
  13. local buttonholder = Instance.new("Frame")
  14. local UICorner_2 = Instance.new("UICorner")
  15. local detail_2 = Instance.new("Frame")
  16. local UIListLayout = Instance.new("UIListLayout")
  17. local UICorner_3 = Instance.new("UICorner")
  18.  
  19. ScreenGui.Parent = game:GetService("CoreGui")
  20. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  21. ScreenGui.Name = "HowlUiLIb"
  22.  
  23.  
  24. main.Name = "main"
  25. main.Parent = ScreenGui
  26. main.BackgroundColor3 = Color3.fromRGB(255, 160, 160)
  27. main.BorderColor3 = Color3.fromRGB(235, 255, 11)
  28. main.BorderSizePixel = 0
  29. main.Position = UDim2.new(0.354332715, 0, 0.276429057, 0)
  30. main.Size = UDim2.new(0, 433, 0, 28)
  31. main.Font = Enum.Font.GothamMedium
  32. main.Text = uiname
  33. main.TextColor3 = Color3.fromRGB(255, 255, 255)
  34. main.TextSize = 14.000
  35. main.TextXAlignment = Enum.TextXAlignment.Left
  36. main.Active = true
  37. main.Draggable = true
  38.  
  39. BCG.Name = "BCG"
  40. BCG.Parent = main
  41. BCG.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  42. BCG.BorderSizePixel = 0
  43. BCG.Position = UDim2.new(-0.000768366386, 0, 0.978885651, 0)
  44. BCG.Size = UDim2.new(0, 433, 0, 182)
  45.  
  46. UICorner.Parent = BCG
  47.  
  48. detail.Name = "detail"
  49. detail.Parent = BCG
  50. detail.BackgroundColor3 = Color3.fromRGB(39, 39, 39)
  51. detail.BorderSizePixel = 0
  52. detail.Position = UDim2.new(0.000768366386, 0, 0.000863882189, 0)
  53. detail.Size = UDim2.new(0, 432, 0, 9)
  54.  
  55. buttonholder.Name = "buttonholder"
  56. buttonholder.Parent = BCG
  57. buttonholder.BackgroundColor3 = Color3.fromRGB(39, 39, 39)
  58. buttonholder.BorderSizePixel = 0
  59. buttonholder.Size = UDim2.new(0, 80, 0, 182)
  60. buttonholder.ZIndex = 2
  61.  
  62. UICorner_2.Parent = buttonholder
  63.  
  64. detail_2.Name = "detail"
  65. detail_2.Parent = buttonholder
  66. detail_2.BackgroundColor3 = Color3.fromRGB(39, 39, 39)
  67. detail_2.BorderSizePixel = 0
  68. detail_2.Position = UDim2.new(-0.000768280006, 0, 0.000863882189, 0)
  69. detail_2.Size = UDim2.new(0, 80, 0, 9)
  70.  
  71. UIListLayout.Parent = buttonholder
  72. UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
  73. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  74. UIListLayout.Padding = UDim.new(0.00999999978, 1)
  75.  
  76. local ButtonHandler = {}
  77.  
  78. function ButtonHandler:CreateButton(btntext, callback)
  79. local BTN = Instance.new("TextButton")
  80. BTN.Name = "BTN"
  81. BTN.Parent = buttonholder
  82. BTN.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  83. BTN.BackgroundTransparency = 5.000
  84. BTN.Position = UDim2.new(0.0874999985, 0, 0.049450554, 0)
  85. BTN.Size = UDim2.new(0, 65, 0, 19)
  86. BTN.ZIndex = 3
  87. BTN.Font = Enum.Font.GothamMedium
  88. BTN.Text = btntext
  89. BTN.TextColor3 = Color3.fromRGB(139, 87, 87)
  90. BTN.TextSize = 11.000
  91. BTN.TextXAlignment = Enum.TextXAlignment.Left
  92. BTN.MouseButton1Up:Connect(callback)
  93. end
  94.  
  95. return ButtonHandler
  96. end
  97.  
  98. return WindowTable
  99.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement