Run it
Copy the script and paste it into your executor.
Players = :()
HttpService = :()
UIS = :()
Player = Players.LocalPlayer Players.PlayerAdded:()
parent = Player:() :()
(()
old = parent:()
old old:()
)
gui = .()
gui.Name =
gui.ResetOnSpawn =
gui.DisplayOrder =
(() gui.Parent = parent )
gui.Parent gui.Parent = Player:()
sound = .()
sound.Volume =
sound.Parent = gui
SAVE_FILE =
lang =
txt = {
pt = {t=, cfg=, back=, id=, nm=, play=, pause=, save=, list=, listen=, del=, lg=, empty=, bad=, ok=, rem=, noFile=},
en = {t=, cfg=, back=, id=, nm=, play=, pause=, save=, list=, listen=, del=, lg=, empty=, bad=, ok=, rem=, noFile=},
es = {t=, cfg=, back=, id=, nm=, play=, pause=, save=, list=, listen=, del=, lg=, empty=, bad=, ok=, rem=, noFile=}
}
bg, sec, neon, ink, dark = .(,,), .(,,), .(,,), .(,,), .(,,)
saved = {}
()
(writefile) == (readfile) ==
()
()
exists =
(isfile) ==
okEx, resEx = (isfile, SAVE_FILE)
exists = okEx resEx
exists
okRead, raw = (readfile, SAVE_FILE)
okRead (raw) ~= raw ==
okDecode, decoded = (()
HttpService:(raw)
)
okDecode (decoded) ==
valid = {}
_, item (decoded)
(item) == item.id item.name
digits = .((item.id), )
digits
.(valid, {
name = (item.name),
id = digits
})
saved = valid
()
()
okEncode, encoded = (()
HttpService:(saved)
)
okEncode (encoded) ~=
okWrite = (writefile, SAVE_FILE, encoded)
okWrite ==
()
(o, r) c = .(); c.CornerRadius = .(, r ); c.Parent = o
(o) s = .(); s.Color = neon; s.Thickness = ; s.ApplyStrokeMode = .ApplyStrokeMode.Border; s.Parent = o
(p, sz, pos, t, c1, c2)
b = .(); b.Size = sz; b.Position = pos; b.Text = t; b.BackgroundColor3 = c1 neon; b.TextColor3 = c2 dark
b.Font = .Font.GothamBold; b.TextSize = ; b.BorderSizePixel = ; b.Parent = p; (b, ); b
(p, sz, pos, ph)
tb = .(); tb.Size = sz; tb.Position = pos; tb.PlaceholderText = ph; tb.Text = ; tb.ClearTextOnFocus =
tb.BackgroundColor3 = sec; tb.TextColor3 = ink; tb.PlaceholderColor3 = .(,,); tb.Font = .Font.Gotham; tb.TextSize =
tb.BorderSizePixel = ; tb.Parent = p; (tb, ); (tb); tb
main = .()
main.Size = .(, , , )
main.Position = .(, -, , -)
main.BackgroundColor3 = bg; main.BorderSizePixel = ; main.Active = ; main.Parent = gui
(main, ); (main)
drag, startInput, startPos
main.InputBegan:((i)
i.UserInputType == .UserInputType.MouseButton1 i.UserInputType == .UserInputType.Touch
drag, startInput, startPos = , i.Position, main.Position
i.Changed:(() i.UserInputState == .UserInputState.End drag = )
)
UIS.InputChanged:((i)
drag (i.UserInputType == .UserInputType.MouseMovement i.UserInputType == .UserInputType.Touch)
d = i.Position - startInput
main.Position = .(startPos.X.Scale, startPos.X.Offset + d.X, startPos.Y.Scale, startPos.Y.Offset + d.Y)
)
titleLbl = .()
titleLbl.Size = .(, -, , ); titleLbl.Position = .(, , , )
titleLbl.BackgroundTransparency = ; titleLbl.Font = .Font.GothamBold; titleLbl.TextSize =
titleLbl.TextColor3 = neon; titleLbl.TextXAlignment = .TextXAlignment.Left; titleLbl.Parent = main
toggleWinBtn = (main, .(, , , ), .(, -, , ), )
cfgBtn = (main, .(, -, , ), .(, , , ), )
cfgPanel = .()
cfgPanel.Size = .(, -, , ); cfgPanel.Position = .(, , , )
cfgPanel.BackgroundColor3 = sec; cfgPanel.Visible = ; cfgPanel.BorderSizePixel = ; cfgPanel.Parent = main
(cfgPanel, ); (cfgPanel)
langLbl = .()
langLbl.Size = .(, -, , ); langLbl.Position = .(, , , )
langLbl.BackgroundTransparency = ; langLbl.Font = .Font.GothamBold; langLbl.TextSize =
langLbl.TextColor3 = ink; langLbl.TextXAlignment = .TextXAlignment.Left; langLbl.Parent = cfgPanel
bEN = (cfgPanel, .(, , , ), .(, , , ), , bg, neon)
bES = (cfgPanel, .(, , , ), .(, , , ), , bg, neon)
bPT = (cfgPanel, .(, , , ), .(, , , ), , bg, neon)
_, b ({bEN, bES, bPT}) (b)
backBtn = (cfgPanel, .(, -, , ), .(, , , ), )
body = .()
body.Size = .(, -, , -); body.Position = .(, , , )
body.BackgroundTransparency = ; body.Parent = main
idBox = (body, .(, , , ), .(, , , ), )
nameBox = (body, .(, , , ), .(, , , ), )
playBtn = (body, .(, , , ), .(, , , ), )
saveBtn = (body, .(, , , ), .(, , , ), , sec, neon)
(saveBtn)
timeBox = .()
timeBox.Size = .(, , , ); timeBox.Position = .(, , , )
timeBox.BackgroundColor3 = sec; timeBox.BorderSizePixel = ; timeBox.Parent = body
(timeBox, ); (timeBox)
rewBtn = (timeBox, .(, , , ), .(, , , ), , bg, neon); (rewBtn)
fwdBtn = (timeBox, .(, , , ), .(, -, , ), , bg, neon); (fwdBtn)
timeLbl = .()
timeLbl.Size = .(, -, , ); timeLbl.Position = .(, , , )
timeLbl.BackgroundTransparency = ; timeLbl.Font = .Font.GothamBold; timeLbl.TextSize =
timeLbl.TextColor3 = ink; timeLbl.Text = ; timeLbl.Parent = timeBox
barBg = .()
barBg.Size = .(, -, , ); barBg.Position = .(, , , -)
barBg.BackgroundColor3 = bg; barBg.Text = ; barBg.AutoButtonColor = ; barBg.BorderSizePixel = ; barBg.Parent = timeBox
(barBg, )
barFill = .()
barFill.Size = .(, , , ); barFill.BackgroundColor3 = neon; barFill.BorderSizePixel = ; barFill.Parent = barBg
(barFill, )
listLbl = .()
listLbl.Size = .(, , , ); listLbl.Position = .(, , , )
listLbl.BackgroundTransparency = ; listLbl.Font = .Font.GothamBold; listLbl.TextSize =
listLbl.TextColor3 = neon; listLbl.TextXAlignment = .TextXAlignment.Left; listLbl.Parent = body
statusLbl = .()
statusLbl.Size = .(, , , ); statusLbl.Position = .(, , , )
statusLbl.BackgroundTransparency = ; statusLbl.Font = .Font.Gotham; statusLbl.TextSize =
statusLbl.TextColor3 = ink; statusLbl.TextXAlignment = .TextXAlignment.Left; statusLbl.Text = ; statusLbl.Parent = body
scroll = .()
scroll.Size = .(, , , -); scroll.Position = .(, , , )
scroll.BackgroundColor3 = sec; scroll.ScrollBarImageColor3 = neon; scroll.ScrollBarThickness =
scroll.BorderSizePixel = ; scroll.CanvasSize = .(, , , ); scroll.Parent = body
(scroll, ); (scroll)
layout = .(); layout.Padding = .(, ); layout.Parent = scroll
pad = .(); pad.PaddingTop = .(,); pad.PaddingLeft = .(,); pad.PaddingRight = .(,); pad.Parent = scroll
(s)
s s ~= s s <=
s = .(s)
.(, .(s/), s%)
(v)
d = .((v ), )
d ( .. d)
(assetId)
sound:()
sound.TimePosition =
sound.SoundId =
.()
sound.SoundId = assetId
sound.TimePosition =
sound:()
renderList
()
d = txt[lang]
titleLbl.Text = d.t; cfgBtn.Text = cfgPanel.Visible d.back d.cfg; backBtn.Text = d.back
idBox.PlaceholderText = d.id; nameBox.PlaceholderText = d.nm
playBtn.Text = sound.IsPlaying d.pause d.play; saveBtn.Text = d.save
listLbl.Text = d.list; langLbl.Text = d.lg
renderList ()
(v)
id = (v)
id statusLbl.Text = txt[lang].bad;
statusLbl.Text = id
(id)
idBox.FocusLost:(()
id = (idBox.Text)
id sound.SoundId ~= id
sound:()
sound.TimePosition =
sound.SoundId = id
)
renderList = ()
_, c (scroll:()) c:() c:() c:()
d = txt[lang]
#saved ==
e = .(); e.Size = .(,,,); e.BackgroundTransparency =
e.Font = .Font.Gotham; e.TextSize = ; e.TextColor3 = ink; e.Text = d.empty; e.Parent = scroll
scroll.CanvasSize = .(,,,);
i, it (saved)
row = .(); row.Size = .(,-,,); row.BackgroundColor3 = bg; row.BorderSizePixel = ; row.Parent = scroll
(row, ); (row)
nl = .(); nl.Size = .(,,,); nl.Position = .(,,,)
nl.BackgroundTransparency = ; nl.Font = .Font.GothamBold; nl.TextSize = ; nl.TextTruncate = .TextTruncate.AtEnd
nl.TextXAlignment = .TextXAlignment.Left; nl.TextColor3 = ink; nl.Text = it.name; nl.Parent = row
lb = (row, .(,,,), .(,,,-), d.listen)
db = (row, .(,,,), .(,,,-), d.del, .(,,), .(,,))
lb.MouseButton1Click:(() idBox.Text = it.id; nameBox.Text = it.name; (it.id); () )
db.MouseButton1Click:(()
.(saved, i)
()
statusLbl.Text = txt[lang].rem
()
)
.(() scroll.CanvasSize = .(,,,layout.AbsoluteContentSize.Y + ) )
closed =
toggleWinBtn.MouseButton1Click:(()
closed = closed
cfgBtn.Visible = closed
body.Visible = closed cfgPanel.Visible
cfgPanel.Visible = closed cfgPanel.Visible
main.Size = closed .(, , , ) .(, , , )
toggleWinBtn.Text = closed
closed ()
)
(v) closed ; cfgPanel.Visible = v; body.Visible = v; ()
cfgBtn.MouseButton1Click:(() ( cfgPanel.Visible) )
backBtn.MouseButton1Click:(() () )
bEN.MouseButton1Click:(() lang = ; () )
bES.MouseButton1Click:(() lang = ; () )
bPT.MouseButton1Click:(() lang = ; () )
playBtn.MouseButton1Click:(()
typedId = (idBox.Text)
typedId sound.SoundId ~= typedId
(typedId)
()
sound.IsPlaying
sound:()
sound.SoundId == sound.SoundId ==
(idBox.Text)
sound:()
()
)
rewBtn.MouseButton1Click:(() sound.TimePosition = .(, sound.TimePosition - ) )
fwdBtn.MouseButton1Click:(()
m = sound.TimeLength > sound.TimeLength (sound.TimePosition + )
sound.TimePosition = .(m, sound.TimePosition + )
)
scrub =
(x)
sound.TimeLength <= barBg.AbsoluteSize.X <=
sound.TimePosition = .((x - barBg.AbsolutePosition.X) / barBg.AbsoluteSize.X, , ) * sound.TimeLength
barBg.InputBegan:((i) i.UserInputType == .UserInputType.MouseButton1 i.UserInputType == .UserInputType.Touch scrub = ; (i.Position.X) )
UIS.InputChanged:((i) scrub (i.UserInputType == .UserInputType.MouseMovement i.UserInputType == .UserInputType.Touch) (i.Position.X) )
UIS.InputEnded:((i) i.UserInputType == .UserInputType.MouseButton1 i.UserInputType == .UserInputType.Touch scrub = )
saveBtn.MouseButton1Click:(()
id = (idBox.Text)
id statusLbl.Text = txt[lang].bad;
nm = .(nameBox.Text , )
nm == nm = .. (#saved + )
.(saved, , {name = nm, id = .(id, )})
wrote = ()
nameBox.Text =
statusLbl.Text = wrote txt[lang].ok (txt[lang].ok .. .. txt[lang].noFile .. )
()
)
.(()
gui.Parent
c, l = sound.TimePosition, sound.TimeLength
timeLbl.Text = (c) .. .. (l)
barFill.Size = .(l > .(c / l, , ) , , , )
playBtn.Text = sound.IsPlaying txt[lang].pause txt[lang].play
.()
)
()
Universal