ArmnnHammer

sd

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