Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Create a ScreenGui to hold the GUI elements
- local gui = Instance.new("ScreenGui")
- gui.Name = "CustomizableGUI"
- gui.Parent = game.Players.LocalPlayer.PlayerGui
- gui.ResetOnSpawn = false
- gui.IgnoreGuiInset = false
- -- Create a function to add a new button
- function ab(hov, text, callback)
- local button = Instance.new("TextButton")
- button.Name = "Buttongayastodk0"
- button.Text = text
- local infoLabel = Instance.new("TextLabel")
- infoLabel.BackgroundTransparency = 0.1
- infoLabel.Position = UDim2.new(0, -500, 0, 0)
- infoLabel.BackgroundColor3 = Color3.fromRGB(23, 22, 22)
- infoLabel.Size = UDim2.new(0, 200, 0, 20)
- infoLabel.TextColor3 = Color3.new(1, 1, 1)
- infoLabel.TextStrokeTransparency = 1
- infoLabel.TextXAlignment = Enum.TextXAlignment.Left
- infoLabel.Font = Enum.Font.Michroma
- infoLabel.Parent = gui
- infoLabel.TextSize = 18.00
- -- add mouse hover event
- button.MouseEnter:Connect(function(x, y)
- infoLabel.Text = hov
- infoLabel.Position = UDim2.new(0, x, 0, y)
- infoLabel.Visible = true
- end)
- button.MouseLeave:Connect(function()
- infoLabel.Visible = false
- end)
- -- Set up the button's click event
- button.MouseButton1Click:Connect(callback)
- return button
- end
- -- Create a function to add a new frame
- function af(size, position, color)
- local frame = Instance.new("Frame")
- frame.Name = "Frame"
- frame.Size = size
- frame.Position = position
- frame.BackgroundColor3 = color
- return frame
- end
- -- Create a function to add new text
- function at(text, size, position)
- local textLabel = Instance.new("TextLabel")
- textLabel.Name = "Text"
- textLabel.Text = text
- textLabel.Size = size
- textLabel.Position = position
- textLabel.Parent = gui
- return textLabel
- end
- local f2 = af(UDim2.new(0, 315, 0, 50), UDim2.new(0, -265, 0, 0), Color3.fromRGB(11.5, 11, 11))
- f2.Parent = gui
- local mainf = af(UDim2.new(0, 250, 0, 50), UDim2.new(0, 0, 0, 0), Color3.fromRGB(11.5, 11, 11))
- mainf.Parent = gui
- mainf.Visible = false
- local b1 = ab("shows the gui.", ">", function()
- 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")
- if mainf.Visible == false then
- mainf.Visible = true
- else
- mainf.Visible = false
- end
- end)
- -- Change the button's appearance
- b1.BackgroundColor3 = Color3.fromRGB(46, 44, 44)
- b1.TextColor3 = Color3.new(1, 1, 1)
- b1.Size = UDim2.new(0, 40, 0, 40)
- b1.Position = UDim2.new(0, 5, 0, 5)
- b1.TextSize = 20.00
- local f1 = af(UDim2.new(0, 50, 0, 50), UDim2.new(0, 0, 0, 0), Color3.fromRGB(23, 22, 22))
- -- Add a button to the GUI
- local bf = af(UDim2.new(0, 50, 0, 50), UDim2.new(0, 200, 0, 0), Color3.fromRGB(23, 22, 22))
- bf.Parent = mainf
- local bmain = ab("destroys the gui.", "•|•", function()
- gui:Destroy()
- end)
- bmain.BackgroundColor3 = Color3.fromRGB(46, 44, 44)
- bmain.TextColor3 = Color3.new(1, 1, 1)
- bmain.Size = UDim2.new(0, 40, 0, 40)
- bmain.Position = UDim2.new(0, 5, 0, 5)
- bmain.TextSize = 20.00
- bmain.Parent = bf
- -- Change the frame's appearance
- local bf2 = af(UDim2.new(0, 50, 0, 50), UDim2.new(0, 150, 0, 0), Color3.fromRGB(23, 22, 22))
- bf2.Parent = mainf
- local c1 = Instance.new("UICorner")
- c1.CornerRadius = UDim.new(0,200)
- c1.Parent = f1
- local c2 = Instance.new("UICorner")
- c2.CornerRadius = UDim.new(0,200)
- c2.Parent = b1
- local c3 = Instance.new("UICorner")
- c3.CornerRadius = UDim.new(0,200)
- c3.Parent = f2
- local c4 = Instance.new("UICorner")
- c4.CornerRadius = UDim.new(0,200)
- c4.Parent = mainf
- local ce4 = Instance.new("UICorner")
- ce4.CornerRadius = UDim.new(0,200)
- ce4.Parent = bmain
- local cee4 = Instance.new("UICorner")
- cee4.CornerRadius = UDim.new(0,200)
- cee4.Parent = bf
- local ce4e = Instance.new("UICorner")
- ce4e.CornerRadius = UDim.new(0,200)
- ce4e.Parent = infoLabel
- local ceee4 = Instance.new("UICorner")
- ceee4.CornerRadius = UDim.new(0,200)
- ceee4.Parent = bf2
- --[[
- -- Create a new Frame object to hold the circle
- local circleFrame = Instance.new("Frame")
- circleFrame.Size = UDim2.new(0, 200, 0, 200) -- Set the size of the circle
- circleFrame.BackgroundColor3 = Color3.new(1, 1, 1) -- Set the background color to white
- circleFrame.BorderSizePixel = 0 -- Remove the border
- -- Set up the number of points and the radius of the circle
- local numPoints = 32
- local radius = 100
- -- Loop through each point and create a new frame at the correct position
- for i = 1, numPoints do
- local pointFrame = Instance.new("Frame", circleFrame) -- Create a new Frame object as a child of the circleFrame
- pointFrame.Size = UDim2.new(0, 4, 0, 4) -- Set the size of each point
- pointFrame.BackgroundColor3 = Color3.new(0, 0, 0) -- Set the background color to black
- pointFrame.BorderSizePixel = 0 -- Remove the border
- -- Calculate the angle of this point in radians
- local angle = math.rad((i / numPoints) * 360)
- -- Calculate the x and y positions of the point using trigonometry
- local xPos = math.cos(angle) * radius
- local yPos = math.sin(angle) * radius
- -- Set the position of the pointFrame relative to the center of the circleFrame
- pointFrame.Position = UDim2.new(0.5, xPos, 0.5, yPos)
- end
- -- Add the circleFrame to the game's Workspace or a ScreenGui object to make it visible
- circleFrame.Parent = game.Workspace
- ]]
- print("i shall die")
- f1.Parent = gui
- b1.Parent = gui
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement