Run it
Copy the script and paste it into your executor.
RunService = :()
TweenService = :()
UserInputService = :()
screenGui = .()
screenGui.Name =
screenGui.Parent = .Players.LocalPlayer:()
screenGui.ZIndexBehavior = .ZIndexBehavior.Sibling
screenGui.ResetOnSpawn =
.()
mainFrame = .()
mainFrame.Name =
mainFrame.Size = .(, , , )
mainFrame.BackgroundColor3 = .(, , )
mainFrame.BorderSizePixel =
mainFrame.ClipsDescendants =
mainFrame.Parent = screenGui
()
screenGui mainFrame
screenGui.AbsoluteSize mainFrame.AbsoluteSize
screenSize = screenGui.AbsoluteSize
frameSize = mainFrame.AbsoluteSize
screenSize.X > frameSize.X >
centerX = (screenSize.X - frameSize.X) /
centerY = (screenSize.Y - frameSize.Y) /
mainFrame.Position = .(centerX, centerY)
.(()
.()
mainFrame mainFrame.Parent
()
)
recenterDebounce =
screenGui:():(()
recenterDebounce
recenterDebounce =
.()
mainFrame mainFrame.Parent
()
recenterDebounce =
)
uiCorner = .()
uiCorner.CornerRadius = .(, )
uiCorner.Parent = mainFrame
uiStroke = .()
uiStroke.Color = .(, , )
uiStroke.Thickness =
uiStroke.Parent = mainFrame
header = .()
header.Name =
header.Size = .(, , , )
header.Position = .(, , , )
header.BackgroundColor3 = .(, , )
header.BorderSizePixel =
header.ZIndex =
header.Parent = mainFrame
headerCorner = .()
headerCorner.CornerRadius = .(, , , )
headerCorner.Parent = header
title = .()
title.Name =
title.Size = .(, -, , )
title.Position = .(, , , )
title.BackgroundTransparency =
title.Text =
title.TextColor3 = .(, , )
title.TextSize =
title.Font = .Font.GothamBold
title.TextXAlignment = .TextXAlignment.Left
title.ZIndex =
title.Parent = header
minimizeButton = .()
minimizeButton.Name =
minimizeButton.Size = .(, , , )
minimizeButton.Position = .(, -, , )
minimizeButton.BackgroundColor3 = .(, , )
minimizeButton.TextColor3 = .(, , )
minimizeButton.Text =
minimizeButton.TextSize =
minimizeButton.Font = .Font.GothamBold
minimizeButton.ZIndex =
minimizeButton.Parent = header
minimizeCorner = .()
minimizeCorner.CornerRadius = .(, )
minimizeCorner.Parent = minimizeButton
closeButton = .()
closeButton.Name =
closeButton.Size = .(, , , )
closeButton.Position = .(, -, , )
closeButton.BackgroundColor3 = .(, , )
closeButton.TextColor3 = .(, , )
closeButton.Text =
closeButton.TextSize =
closeButton.Font = .Font.GothamBold
closeButton.ZIndex =
closeButton.Parent = header
closeCorner = .()
closeCorner.CornerRadius = .(, )
closeCorner.Parent = closeButton
scrollFrame = .()
scrollFrame.Name =
scrollFrame.Size = .(, -, , -)
scrollFrame.Position = .(, , , )
scrollFrame.BackgroundColor3 = .(, , )
scrollFrame.BackgroundTransparency =
scrollFrame.BorderSizePixel =
scrollFrame.ScrollBarThickness =
scrollFrame.ScrollBarImageColor3 = .(, , )
scrollFrame.ScrollingDirection = .ScrollingDirection.Y
scrollFrame.VerticalScrollBarInset = .ScrollBarInset.Always
scrollFrame.AutomaticCanvasSize = .AutomaticSize.Y
scrollFrame.CanvasSize = .(, , , )
scrollFrame.ZIndex =
scrollFrame.Parent = mainFrame
contentCorner = .()
contentCorner.CornerRadius = .(, )
contentCorner.Parent = scrollFrame
contentStroke = .()
contentStroke.Color = .(, , )
contentStroke.Thickness =
contentStroke.Parent = scrollFrame
contentContainer = .()
contentContainer.Name =
contentContainer.Size = .(, , , )
contentContainer.BackgroundTransparency =
contentContainer.Parent = scrollFrame
contentContainer:():(()
totalHeight =
_, child (contentContainer:())
child:()
totalHeight = totalHeight + child.AbsoluteSize.Y +
scrollFrame.CanvasSize = .(, , , totalHeight)
)
minimizeButton.MouseEnter:(()
minimizeButton
TweenService:(minimizeButton, TweenInfo.(), {
BackgroundColor3 = .(, , )
}):()
)
minimizeButton.MouseLeave:(()
minimizeButton
TweenService:(minimizeButton, TweenInfo.(), {
BackgroundColor3 = .(, , )
}):()
)
closeButton.MouseEnter:(()
closeButton
TweenService:(closeButton, TweenInfo.(), {
BackgroundColor3 = .(, , )
}):()
)
closeButton.MouseLeave:(()
closeButton
TweenService:(closeButton, TweenInfo.(), {
BackgroundColor3 = .(, , )
}):()
)
isMinimized =
minimizeButton.MouseButton1Click:(()
mainFrame scrollFrame
isMinimized = isMinimized
isMinimized
minimizeButton.Text =
mainFrame:()
mainFrame:(, mainFrame.Size)
TweenService:(mainFrame, TweenInfo.(, .EasingStyle.Quad, .EasingDirection.Out), {
Size = .(, , , )
}):()
.()
scrollFrame
scrollFrame.Visible =
minimizeButton.Text =
originalSize = mainFrame:() .(, , , )
scrollFrame
scrollFrame.Visible =
TweenService:(mainFrame, TweenInfo.(, .EasingStyle.Quad, .EasingDirection.Out), {
Size = originalSize
}):()
)
isClosing =
closeButton.MouseButton1Click:(()
isClosing
isClosing =
fadeInfo = TweenInfo.(, .EasingStyle.Quad, .EasingDirection.Out)
TweenService:(mainFrame, fadeInfo, {
BackgroundTransparency =
}):()
descendants = mainFrame:()
_, child (descendants)
child:() child:()
TweenService:(child, fadeInfo, {
TextTransparency =
}):()
child:()
TweenService:(child, fadeInfo, {
BackgroundTransparency =
}):()
child:()
TweenService:(child, fadeInfo, {
Transparency =
}):()
.()
screenGui screenGui.Parent
screenGui:()
)
isDragging =
dragStart, frameStart
header.InputBegan:((input)
input.UserInputType == .UserInputType.MouseButton1
input.UserInputType == .UserInputType.Touch
mousePos = input.Position
minimizeButton closeButton
minBtnPos = minimizeButton.AbsolutePosition
closeBtnPos = closeButton.AbsolutePosition
btnSize = minimizeButton.AbsoluteSize
mousePos.X >= minBtnPos.X mousePos.X <= closeBtnPos.X + btnSize.X
isDragging =
dragStart = input.Position
frameStart = mainFrame.Position
()
isDragging =
input.UserInputType == .UserInputType.MouseButton1
input:():(()
input.UserInputState == .UserInputState.End
()
)
input.Changed:(()
input.UserInputState == .UserInputState.End
()
)
)
UserInputService.InputChanged:((input)
isDragging mainFrame
input.UserInputType == .UserInputType.MouseMovement
input.UserInputType == .UserInputType.Touch
delta = input.Position - dragStart
mainFrame.Position = .(
frameStart.X.Scale,
frameStart.X.Offset + delta.X,
frameStart.Y.Scale,
frameStart.Y.Offset + delta.Y
)
)
screenGui.AncestryChanged:(()
screenGui.Parent
screenGui
screenGui:()
)
{
GUI = screenGui,
MainFrame = mainFrame,
ScrollFrame = scrollFrame,
ContentContainer = contentContainer,
Destroy = ()
screenGui screenGui.Parent
screenGui:()
}this are UI for everyone who lazy make own UI i'll give my simple UI 👍

Universal