Run it
Copy the script and paste it into your executor.
Players = :()
UserInputService = :()
player = Players.LocalPlayer
gui = .()
frame = .()
textBox = .()
playButton = .()
stopButton = .()
loopButton = .()
closeButton = .()
minimizeButton = .()
title = .()
gui.Name =
gui.ResetOnSpawn =
gui.Parent = player:()
originalSize = .(, , , )
minimizedSize = .(, , , )
isMinimized =
frame.Size = originalSize
frame.Position = .(, -, , -)
frame.AnchorPoint = .(, )
frame.BackgroundColor3 = .(, , )
frame.BackgroundTransparency =
frame.Draggable =
frame.Parent = gui
frameStroke = .()
frameStroke.Color = .(, , )
frameStroke.Thickness =
frameStroke.Parent = frame
frameCorner = .()
frameCorner.CornerRadius = .(, )
frameCorner.Parent = frame
title.Name =
title.Text =
title.Size = .(, , , )
title.Position = .(, , , )
title.BackgroundColor3 = .(, , )
title.BackgroundTransparency =
title.TextColor3 = .(, , )
title.Font = .Font.GothamBold
title.TextSize =
title.Parent = frame
titleCorner = .()
titleCorner.CornerRadius = .(, )
titleCorner.Parent = title
icon = .()
icon.Name =
icon.Size = .(, , , )
icon.Position = .(, , , )
icon.Image =
icon.BackgroundTransparency =
icon.Parent = frame
textBox.PlaceholderText =
textBox.Text =
textBox.Size = .(, , , )
textBox.Position = .(, , , )
textBox.BackgroundColor3 = .(, , )
textBox.Font = .Font.Gotham
textBox.TextSize =
textBox.TextColor3 = .(, , )
textBox.Parent = frame
textBoxCorner = .()
textBoxCorner.CornerRadius = .(, )
textBoxCorner.Parent = textBox
playButton.Size = .(, , , )
playButton.Position = .(, , , )
playButton.Text =
playButton.BackgroundColor3 = .(, , )
playButton.Font = .Font.GothamBold
playButton.TextColor3 = .(, , )
playButton.TextSize =
playButton.Visible =
playButton.Parent = frame
playCorner = .()
playCorner.CornerRadius = .(, )
playCorner.Parent = playButton
stopButton.Size = .(, , , )
stopButton.Position = .(, , , )
stopButton.Text =
stopButton.BackgroundColor3 = .(, , )
stopButton.Font = .Font.GothamBold
stopButton.TextColor3 = .(, , )
stopButton.TextSize =
stopButton.Visible =
stopButton.Parent = frame
stopCorner = .()
stopCorner.CornerRadius = .(, )
stopCorner.Parent = stopButton
loopButton.Size = .(, , , )
loopButton.Position = .(, , , )
loopButton.Text =
loopButton.BackgroundColor3 = .(, , )
loopButton.Font = .Font.GothamBold
loopButton.TextColor3 = .(, , )
loopButton.TextSize =
loopButton.Visible =
loopButton.Parent = frame
loopCorner = .()
loopCorner.CornerRadius = .(, )
loopCorner.Parent = loopButton
closeButton.Size = .(, , , )
closeButton.Position = .(, , , )
closeButton.Text =
closeButton.BackgroundColor3 = .(, , )
closeButton.Font = .Font.GothamBold
closeButton.TextColor3 = .(, , )
closeButton.TextSize =
closeButton.Visible =
closeButton.Parent = frame
timeDisplay = .()
timeDisplay.Name =
timeDisplay.Size = .(, , , )
timeDisplay.Position = .(, , , )
timeDisplay.BackgroundTransparency =
timeDisplay.Text =
timeDisplay.TextColor3 = .(, , )
timeDisplay.Font = .Font.GothamMedium
timeDisplay.TextSize =
timeDisplay.Parent = frame
closeCorner = .()
closeCorner.CornerRadius = .(, )
closeCorner.Parent = closeButton
minimizeButton.Size = .(, , , )
minimizeButton.Position = .(, -, , -)
minimizeButton.Text =
minimizeButton.BackgroundColor3 = .(, , )
minimizeButton.Font = .Font.GothamBold
minimizeButton.TextColor3 = .(, , )
minimizeButton.TextSize =
minimizeButton.Parent = title
minimizeCorner = .()
minimizeCorner.CornerRadius = .(, )
minimizeCorner.Parent = minimizeButton
currentSound =
isLooping =
timeUpdateConnection =
endedConnection =
originalElementStates = {}
()
currentSound
currentSound:()
currentSound:()
currentSound =
timeUpdateConnection
timeUpdateConnection:()
timeUpdateConnection =
endedConnection
endedConnection:()
endedConnection =
()
isMinimized = isMinimized
isMinimized
originalElementStates = {
textBox = {Visible = textBox.Visible},
playButton = {Visible = playButton.Visible},
stopButton = {Visible = stopButton.Visible},
loopButton = {Visible = loopButton.Visible},
closeButton = {Visible = closeButton.Visible},
timeDisplay = {Visible = timeDisplay.Visible}
}
textBox.Visible =
playButton.Visible =
stopButton.Visible =
loopButton.Visible =
closeButton.Visible =
timeDisplay.Visible =
frame.Size = minimizedSize
minimizeButton.Text =
textBox.Visible = originalElementStates.textBox.Visible
playButton.Visible = originalElementStates.playButton.Visible
stopButton.Visible = originalElementStates.stopButton.Visible
loopButton.Visible = originalElementStates.loopButton.Visible
closeButton.Visible = originalElementStates.closeButton.Visible
timeDisplay.Visible = originalElementStates.timeDisplay.Visible
frame.Size = originalSize
minimizeButton.Text =
minimizeButton.MouseButton1Click:(toggleMinimize)
(seconds)
minutes = .(seconds / )
remainingSeconds = .(seconds % )
.(, minutes, remainingSeconds)
(sound)
sound sound.IsPlaying
currentTime = (sound.TimePosition)
totalTime = (sound.TimeLength)
timeDisplay.Text = currentTime....totalTime
timeDisplay.Text =
timeUpdateConnection =
(sound)
timeUpdateConnection
timeUpdateConnection:()
timeUpdateConnection = :().Heartbeat:(()
(sound)
)
(frame)
dragging =
dragInput, dragStart
frame.InputBegan:((input)
input.UserInputType == .UserInputType.Touch input.UserInputType == .UserInputType.MouseButton1
dragging =
dragStart = input.Position
input.Changed:(()
input.UserInputState == .UserInputState.End
dragging =
)
)
frame.InputChanged:((input)
input.UserInputType == .UserInputType.MouseMovement input.UserInputType == .UserInputType.Touch
dragInput = input
)
UserInputService.InputChanged:((input)
dragging input == dragInput
delta = input.Position - dragStart
frame.Position = .(
frame.Position.X.Scale,
frame.Position.X.Offset + delta.X,
frame.Position.Y.Scale,
frame.Position.Y.Offset + delta.Y
)
dragStart = input.Position
)
(frame)
loopButton.MouseButton1Click:(()
isLooping = isLooping
loopButton.Text = .. (isLooping )
loopButton.BackgroundColor3 = isLooping .(, , ) .(, , )
currentSound
currentSound.Looped = isLooping
isLooping currentSound.IsPlaying
currentSound:()
)
playButton.MouseButton1Click:(()
audioId = textBox.Text
audioId ==
()
sound = .()
sound.SoundId = ..audioId
sound.Looped = isLooping
sound.Parent =
sound.Loaded:()
sound:()
currentSound = sound
(sound)
endedConnection = sound.Ended:(()
isLooping
()
timeDisplay.Text = ..(sound.TimeLength)
sound:()
)
)
stopButton.MouseButton1Click:(()
()
timeDisplay.Text =
)
closeButton.MouseButton1Click:(()
gui:()
currentSound
currentSound:()
currentSound:()
currentSound =
)Just a regular music player, does it look cool to you? This script is open source, so if you want to steal it, go ahead :/ not fe sorry :( By luauruler26