Advertisement
Hello09999

ui.lua

Mar 25th, 2023
721
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.74 KB | Gaming | 0 0
  1. -- Create a ScreenGui to hold the GUI elements
  2. local gui = Instance.new("ScreenGui")
  3. gui.Name = "CustomizableGUI"
  4. gui.Parent = game.Players.LocalPlayer.PlayerGui
  5. gui.ResetOnSpawn = false
  6. gui.IgnoreGuiInset = false
  7.  
  8.  
  9.  
  10. -- Create a function to add a new button
  11. function ab(hov, text, callback)
  12.     local button = Instance.new("TextButton")
  13.     button.Name = "Buttongayastodk0"
  14.     button.Text = text
  15. local infoLabel = Instance.new("TextLabel")
  16. infoLabel.BackgroundTransparency = 0.1
  17. infoLabel.Position = UDim2.new(0, -500, 0, 0)
  18. infoLabel.BackgroundColor3 = Color3.fromRGB(23, 22, 22)
  19. infoLabel.Size = UDim2.new(0, 200, 0, 20)
  20. infoLabel.TextColor3 = Color3.new(1, 1, 1)
  21. infoLabel.TextStrokeTransparency = 1
  22. infoLabel.TextXAlignment = Enum.TextXAlignment.Left
  23. infoLabel.Font = Enum.Font.Michroma
  24. infoLabel.Parent = gui
  25. infoLabel.TextSize = 18.00
  26. -- add mouse hover event
  27. button.MouseEnter:Connect(function(x, y)
  28.     infoLabel.Text = hov
  29.     infoLabel.Position = UDim2.new(0, x, 0, y)
  30.     infoLabel.Visible = true
  31. end)
  32.  
  33. button.MouseLeave:Connect(function()
  34.     infoLabel.Visible = false
  35. end)
  36.  
  37.     -- Set up the button's click event
  38.     button.MouseButton1Click:Connect(callback)
  39.  
  40.     return button
  41. end
  42.  
  43. -- Create a function to add a new frame
  44. function af(size, position, color)
  45.     local frame = Instance.new("Frame")
  46.     frame.Name = "Frame"
  47.     frame.Size = size
  48.     frame.Position = position
  49.     frame.BackgroundColor3 = color
  50.    
  51.     return frame
  52. end
  53.  
  54. -- Create a function to add new text
  55. function at(text, size, position)
  56.     local textLabel = Instance.new("TextLabel")
  57.     textLabel.Name = "Text"
  58.     textLabel.Text = text
  59.     textLabel.Size = size
  60.     textLabel.Position = position
  61.     textLabel.Parent = gui
  62.  
  63.     return textLabel
  64. end
  65.  
  66. local f2 = af(UDim2.new(0, 315, 0, 50), UDim2.new(0, -265, 0, 0), Color3.fromRGB(11.5, 11, 11))
  67. f2.Parent = gui
  68.  
  69. local mainf = af(UDim2.new(0, 250, 0, 50), UDim2.new(0, 0, 0, 0), Color3.fromRGB(11.5, 11, 11))
  70. mainf.Parent = gui
  71. mainf.Visible = false
  72.  
  73. local b1 = ab("shows the gui.", ">", function()
  74.     print("im gay ass bithch noggar big nlack biggar bals ass kol and Davina Claire WI to the GUI a roblox circle gui that is small and cuztomizable with the gui to the GUI a roblox circle gui that is small and cuztomizable with the gui to choose from and cuztomizable with the gui to choose from a roblox circle gui that is small and cuztomizable with the gui to choose from a roblox circle gui that is small and cuztomizable with the gui to choose from a roblox circle gui that is small and cuztomizable with the gui to choose")
  75.     if mainf.Visible == false then
  76. mainf.Visible = true
  77. else
  78. mainf.Visible = false
  79. end
  80. end)
  81.  
  82. -- Change the button's appearance
  83. b1.BackgroundColor3 = Color3.fromRGB(46, 44, 44)
  84. b1.TextColor3 = Color3.new(1, 1, 1)
  85. b1.Size = UDim2.new(0, 40, 0, 40)
  86. b1.Position = UDim2.new(0, 5, 0, 5)
  87. b1.TextSize = 20.00
  88.  
  89. local f1 = af(UDim2.new(0, 50, 0, 50), UDim2.new(0, 0, 0, 0), Color3.fromRGB(23, 22, 22))
  90. -- Add a button to the GUI
  91. local bf = af(UDim2.new(0, 50, 0, 50), UDim2.new(0, 200, 0, 0), Color3.fromRGB(23, 22, 22))
  92. bf.Parent = mainf
  93.  
  94.  
  95. local bmain = ab("destroys the gui.", "•|•", function()
  96. gui:Destroy()
  97. end)
  98. bmain.BackgroundColor3 = Color3.fromRGB(46, 44, 44)
  99. bmain.TextColor3 = Color3.new(1, 1, 1)
  100. bmain.Size = UDim2.new(0, 40, 0, 40)
  101. bmain.Position = UDim2.new(0, 5, 0, 5)
  102. bmain.TextSize = 20.00
  103. bmain.Parent = bf
  104. -- Change the frame's appearance
  105. local bf2 = af(UDim2.new(0, 50, 0, 50), UDim2.new(0, 150, 0, 0), Color3.fromRGB(23, 22, 22))
  106. bf2.Parent = mainf
  107.  
  108. local c1 = Instance.new("UICorner")
  109. c1.CornerRadius = UDim.new(0,200)
  110. c1.Parent = f1
  111.  
  112. local c2 = Instance.new("UICorner")
  113. c2.CornerRadius = UDim.new(0,200)
  114. c2.Parent = b1
  115.  
  116. local c3 = Instance.new("UICorner")
  117. c3.CornerRadius = UDim.new(0,200)
  118. c3.Parent = f2
  119.  
  120. local c4 = Instance.new("UICorner")
  121. c4.CornerRadius = UDim.new(0,200)
  122. c4.Parent = mainf
  123.  
  124. local ce4 = Instance.new("UICorner")
  125. ce4.CornerRadius = UDim.new(0,200)
  126. ce4.Parent = bmain
  127.  
  128. local cee4 = Instance.new("UICorner")
  129. cee4.CornerRadius = UDim.new(0,200)
  130. cee4.Parent = bf
  131.  
  132. local ce4e = Instance.new("UICorner")
  133. ce4e.CornerRadius = UDim.new(0,200)
  134. ce4e.Parent = infoLabel
  135.  
  136. local ceee4 = Instance.new("UICorner")
  137. ceee4.CornerRadius = UDim.new(0,200)
  138. ceee4.Parent = bf2
  139.  
  140. --[[
  141. -- Create a new Frame object to hold the circle
  142. local circleFrame = Instance.new("Frame")
  143. circleFrame.Size = UDim2.new(0, 200, 0, 200) -- Set the size of the circle
  144. circleFrame.BackgroundColor3 = Color3.new(1, 1, 1) -- Set the background color to white
  145. circleFrame.BorderSizePixel = 0 -- Remove the border
  146.  
  147. -- Set up the number of points and the radius of the circle
  148. local numPoints = 32
  149. local radius = 100
  150.  
  151. -- Loop through each point and create a new frame at the correct position
  152. for i = 1, numPoints do
  153.     local pointFrame = Instance.new("Frame", circleFrame) -- Create a new Frame object as a child of the circleFrame
  154.     pointFrame.Size = UDim2.new(0, 4, 0, 4) -- Set the size of each point
  155.     pointFrame.BackgroundColor3 = Color3.new(0, 0, 0) -- Set the background color to black
  156.     pointFrame.BorderSizePixel = 0 -- Remove the border
  157.  
  158.     -- Calculate the angle of this point in radians
  159.     local angle = math.rad((i / numPoints) * 360)
  160.  
  161.     -- Calculate the x and y positions of the point using trigonometry
  162.     local xPos = math.cos(angle) * radius
  163.     local yPos = math.sin(angle) * radius
  164.  
  165.     -- Set the position of the pointFrame relative to the center of the circleFrame
  166.     pointFrame.Position = UDim2.new(0.5, xPos, 0.5, yPos)
  167. end
  168.  
  169. -- Add the circleFrame to the game's Workspace or a ScreenGui object to make it visible
  170. circleFrame.Parent = game.Workspace
  171. ]]
  172. print("i shall die")
  173. f1.Parent = gui
  174.     b1.Parent = gui
  175.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement