Run it
Copy the script and paste it into your executor.
player = .Players.LocalPlayer
playerGui = player:()
character = player.Character player.CharacterAdded:()
gui = .()
gui.Name =
gui.Parent = playerGui
frame = .()
frame.Size = .(, , , )
frame.Position = .(, , , )
frame.BackgroundColor3 = .(, , )
frame.BorderSizePixel =
frame.BorderColor3 = .(, , )
frame.Visible =
frame.Parent = gui
dragging =
dragInput, dragStart, startPos
frame.InputBegan:((input, gameProcessed)
gameProcessed
input.UserInputType == .UserInputType.MouseButton1
dragging =
dragStart = input.Position
startPos = frame.Position
)
frame.InputChanged:((input)
dragging input.UserInputType == .UserInputType.MouseMovement
delta = input.Position - dragStart
frame.Position = .(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
)
frame.InputEnded:((input)
input.UserInputType == .UserInputType.MouseButton1
dragging =
)
(name, position, size, color, onClickFunction)
button = .()
button.Size = size
button.Position = position
button.Text = name
button.BackgroundColor3 = color
button.TextScaled =
button.Parent = frame
button.MouseButton1Click:(onClickFunction)
button
(, .(, , , ), .(, , , ), .(, , ), ()
effect = .()
effect.Color = ColorSequence.(.(, , ))
effect.Size = NumberSequence.()
effect.Parent = character:()
()
effect:()
(player.Name .. )
)
(, .(, , , ), .(, , , ), .(, , ), ()
.ReplicatedStorage:():()
)
(, .(, , , ), .(, , , ), .(, , ), ()
lightEffect = .()
lightEffect.Color = .(, , )
lightEffect.Range =
lightEffect.Parent = character:()
()
lightEffect:()
)
(, .(, , , ), .(, , , ), .(, , ), ()
sound = .()
sound.SoundId =
sound.Parent = character:()
sound:()
)
(, .(, , , ), .(, , , ), .(, , ), ()
.ReplicatedStorage:():()
)
(, .(, , , ), .(, , , ), .(, , ), ()
.ReplicatedStorage:():()
)
toggleButton = .()
toggleButton.Size = .(, , , )
toggleButton.Position = .(, , , )
toggleButton.Text =
toggleButton.BackgroundColor3 = .(, , )
toggleButton.TextScaled =
toggleButton.Parent = frame
toggleButton.MouseButton1Click:(()
frame.Visible = frame.Visible
)
canDrag =
(, .(, , , ), .(, , , ), .(, , ), ()
canDrag = canDrag
( .. (canDrag ))
)
(input, button)
canDrag
mousePos = input.Position
xOffset = mousePos.X - button.AbsolutePosition.X
yOffset = mousePos.Y - button.AbsolutePosition.Y
button.Position = .(, mousePos.X - frame.AbsolutePosition.X - xOffset, , mousePos.Y - frame.AbsolutePosition.Y - yOffset)
_, button (frame:())
button:() button ~= toggleButton
button.InputBegan:((input)
input.UserInputType == .UserInputType.MouseButton1
input.Changed:(()
(input, button)
)
)
Gui

Universal