Advertisement
G6n

Roblox Music Gui Not Made By Me

G6n
Apr 8th, 2016
534
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.47 KB | None | 0 0
  1. local plr=game.Players.LocalPlayer
  2. local songs={
  3. [1]={'Beyond her garden',160779288};
  4. [2]={'Carl Poppa',179725230};
  5. [3]={'Adele Hello',313694441};
  6. [4]={'L.A. love',185089050};
  7. [5]={'Xenogenesis',216318362};
  8. [6]={'Monody',338876528};
  9. [7]={'Wrecking Ball',281923177};
  10. [8]={'Paul Walker',235855135};
  11. [9]={'Minecraft Hunger Games',142397652};
  12. [10]={'Happy',145170576};
  13. [11]={'Flo rida GDFR',228951484};
  14. [12]={'We like to party',194376012};
  15. [13]={'Take me to church',208342479};
  16. [14]={'Tokyo Drift theme',143735294};
  17. [15]={'Crank Dat',174655936};
  18. [16]={'Just do it remix',287570590};
  19. [17]={'Follow me',246068214};
  20. [18]={'Outside',240063191};
  21. [19]={'Slow motion',238098497};
  22. [20]={'Sugar-Maroon Five',221896283};
  23. [21]={'Summer',154309298};
  24. [22]={'Animals',177956804};
  25. [23]={'Time Lapse',247787125};
  26. [24]={'Irrestible Fall out boys',202043408};
  27. [25]={'Lips are movin',207106257};
  28. [26]={'Shell Shocked',172573617};
  29. [27]={'Headlines',143854033};
  30. [28]={'Stereo Hearts',249285612};
  31. [29]={'Shake it off',173713435};
  32. [30]={'Pentatonix',320802674};
  33. [31]={'Stay with me',162220205};
  34. [32]={'Panic!At the disco;Hallelujah!',241864564};
  35. [33]={'Hero',170199461};
  36. [34]={'U.S. Pop mash up',148092137};
  37. [35]={'Ghost Assasin',249311958};
  38. [36]={'DJ Earworm Mash up for What!',162880181};
  39. [37]={"Since you've been gone",162705847};
  40. [38]={'Use Sombody',160191956};
  41. [39]={'All of me',144676410};
  42. [40]={'Glory',220731206};
  43. [41]={'Fairty Tail OTS 12',253801434}; --change
  44. [42]={'Undertale - Memory',318502757};
  45. [43]={'J.B Sorry',313512044};
  46. [44]={'Naruto My Name',143475050};
  47. [45]={'Dark Horse-Katy Perry',143204341};
  48. [46]={'Raining Tacos',142376088};
  49. [47]={'Chandelier',158422661};
  50. [48]={'Daylight',159530936};
  51. [49]={'Whistle remix',220602040};
  52. [50]={'Wild ones',183438255};
  53. [51]={'Panic! At the disco- This is Gospel',144707702};
  54. [52]={'Maroon 5 Maps',163538022};
  55. [53]={'Gravity Falls piano',142549047};
  56. [54]={'Monster[Dubstep How should I feel!]',148492408};
  57. [55]={'Pika girl',147223327};
  58. [56]={"OMFG- I love you",225000651};
  59. [57]={'Evanescence Bring me to life',142513155};
  60. [58]={'FOIL',166856063};
  61. [59]={'Die in a fire',244182652};
  62. [60]={'Jurassic Park remix',151247252};
  63. [61]={'Mambo!',147788015};
  64. [62]={'Attack on Titan OTS 1',157264356};
  65. [63]={'DJ-Pewdiepie',148158859};
  66. [64]={'Eminem and The Script Hall of Fame',152879311};
  67. [65]={'Titanium',177930116};
  68. [66]={'Pewds Hero',150206210};
  69. [67]={'Wildest Dreams',235653436};
  70. [68]={'8 bit gravity falls',156026545};
  71. [69]={'Empire state of mind',152677207};
  72. [70]={"Scatman's world",142365030};
  73. [71]={'Airplanes Eminem verse',174283992};
  74. [72]={'Thinking about you remix',217383677};
  75. [73]={'Take on me',144195439},
  76. [74]={'Wayward Son',160854126},
  77. [75]={'DJ Earworm U.S of pop',193620451},
  78. [76]={'Uma Thurman Fall out Boy',223590624},
  79. [77]={'Pitch Perfect 2 (DSM) Light Em Up',257284894},
  80. [78]={'Uptown Funk',210232032},
  81. [79]={'L Train-Steven Universe Theme',253071526},
  82. [80]={'Locked Away',274427825},
  83. [81]={'Sympathy For The Devil',154824672},
  84. [82]={'Just do it auto tune',274504661},
  85. [83]={'Into the Jungle',244502305},
  86. [84]={'All I do is Win',157469995},
  87. [85]={'Renegades- X Ambassadors',242485310},
  88. [86]={'Downtown macklemore x ryan lewis',291735914},
  89. [87]={'Lolipop Trap remix',189624963},
  90. [88]={'Little Einteins',219701493},
  91. [89]={"Emperor's New Clothes",313723217},
  92. [90]={"Benjamin won't back down",243297620},
  93. [91]={'Spooky Scary Skeletons Dubsteps',200519201},
  94. [92]={'MLG snoopdog',186664725},
  95. [93]={"Cheerleader - Pentatonix (OMI Cover)",288649295},
  96. [94]={'Sweet Dreams',161067287},
  97. [95]={'If you could see me now',190144614},
  98. [96]={'Youth(Adventure club remix',175872898},
  99. [97]={'Breathe Zagor remix',171026180},
  100. [98]={'Dawin Dessert',229990159},
  101. [99]={'Undertale- Megalovania',334286966},
  102. [100]={"Where'd you go",180129368},
  103. [101]={"Timmy Trumpets Freaks",257201201},
  104. [102]={"You stupid",179691806},
  105. [103]={"Twenty One Pilots - Stressed Out",243372213},
  106. [104]={"Shawn Mendes-Stitches",228676342},
  107. [105]={"Bet you cant do it like me",315030036},
  108. [106]={"OMI - Cheerleader Remix",254690279},
  109. [107]={"Flo Rida My House",319758951}
  110. }
  111. local curSong
  112. function playSong(id)
  113. pcall(function() curSong.PlayOnRemove=false;curSong.Parent=workspace;curSong:Stop();curSong:Destroy() end)
  114. curSong=Instance.new("Sound")
  115. curSong.PlayOnRemove=true
  116. curSong.SoundId="http://www.roblox.com/asset/?id="..id
  117. curSong.Volume=plr:WaitForChild'Volume'.Value
  118. curSong.Parent=workspace
  119. curSong:remove()
  120. end
  121. function slider(objs)
  122. local dragging=false
  123. local mouse=plr:GetMouse()
  124. local control=objs:FindFirstChild'Control'
  125. local bar=control:FindFirstChild'Bar'
  126. local click=control:FindFirstChild'Click'
  127. local val=plr:WaitForChild(objs.Name)
  128.  
  129. if control and bar and click then
  130. --bar.Position=UDim2.new(0.5,-2,0,bar.Size.Y.Offset+10)
  131. local function checkPos()
  132. if not dragging then return end
  133. dragging=false
  134. click.Position=UDim2.new(0,0,0,bar.Position.Y.Offset-10)
  135. end
  136.  
  137. click.MouseButton1Down:connect(function()
  138. dragging=true
  139. end)
  140. game:GetService('UserInputService').InputEnded:connect(function(input,gameProcessed)
  141. if input.UserInputType==Enum.UserInputType.MouseButton1 then
  142. checkPos()
  143. end
  144. end)
  145. click.MouseButton1Up:connect(function()
  146. checkPos()
  147. end)
  148. click.Changed:connect(function()
  149. if dragging then
  150. drag(click,bar,val)
  151. end
  152. end)
  153. click.Position=UDim2.new(0,0,0,math.ceil(bar.Size.Y.Offset*val.Value))
  154. drag(click,bar,val)
  155. click.Position=UDim2.new(0,0,0,bar.Position.Y.Offset-10)
  156. end
  157. end
  158.  
  159. function drag(dragObj,bar,val)
  160. if bar.Position.Y.Offset>=10 then
  161. if bar.Position.Y.Offset<=bar.Size.Y.Offset then
  162. bar.Position=UDim2.new(0.5,-2,0,dragObj.Position.Y.Offset)
  163. else
  164. bar.Position=UDim2.new(0.5,-2,0,bar.Size.Y.Offset)
  165. end
  166. else
  167. bar.Position=UDim2.new(.5,-2,0,10)
  168. end
  169. val.Value=1-(bar.Position.Y.Offset/bar.Size.Y.Offset)
  170. end
  171.  
  172. function loadMenu()
  173. local gui=Instance.new("ScreenGui",plr.PlayerGui)
  174. local frm=Instance.new("Frame",gui);frm.Visible=false
  175. local buttonC=Instance.new("Frame",gui)
  176. buttonC.Size=UDim2.new(0,50,0,50)
  177. buttonC.Position=UDim2.new(0.5,-25,0,0)
  178. buttonC.BorderColor3=Color3.new(0,0,0)
  179. local button=Instance.new("TextButton",buttonC)
  180. button.Size=UDim2.new(1,0,1,0)
  181. button.Position=UDim2.new(0,0,0,0)
  182. button.BackgroundTransparency=1
  183. button.ZIndex=3
  184. button.Font=Enum.Font.ArialBold
  185. button.TextColor3=Color3.new(0,0,0)
  186. button.Text="REX\nPLAYER"
  187. button.MouseButton1Down:connect(function()
  188. if not frm.Visible then
  189. frm.Visible=true
  190. else
  191. frm.Visible=false
  192. end
  193. end)
  194. local bars=Instance.new("Frame",buttonC)
  195. bars.Size=UDim2.new(1,0,1,0)
  196. bars.BackgroundTransparency=1
  197. bars.ZIndex=2
  198. local function gradient()
  199. local phase=0
  200. local center = 128;
  201. local width = 127;
  202. local frequency = math.pi*2/#bars:GetChildren();
  203. for i=1,#bars:GetChildren() do
  204. spawn(function()
  205. while true do
  206. if bars[i].Parent==nil then break end
  207. local red = math.sin(frequency*i+2+phase) * width + center;
  208. local green = math.sin(frequency*i+0+phase) * width + center;
  209. local blue = math.sin(frequency*i+4+phase) * width + center;
  210. bars[i].BackgroundColor3=Color3.new(1,green/255,1)
  211. phase=phase+.01
  212. game:GetService('RunService').RenderStepped:wait()
  213. end
  214. end)
  215. end
  216. end
  217. for i=1,10 do
  218. local bar=Instance.new("Frame",bars)
  219. bar.Name=i
  220. bar.ZIndex=2
  221. bar.Size=UDim2.new(1,0,.1,0)
  222. bar.BorderSizePixel=0
  223. bar.Position=UDim2.new(0,0,.1*(i-1),0)
  224. end
  225. gradient()
  226. frm.Size=UDim2.new(0,400,0,300)
  227. frm.Position=UDim2.new(0.5,-200,0.5,-150)
  228. frm.BackgroundTransparency=1
  229.  
  230. local nav=Instance.new("Frame",frm)
  231. nav.Name="nav"
  232. nav.Size=UDim2.new(1,0,.1,0)
  233. nav.BackgroundColor3=Color3.new(1,1,1)
  234. nav.BorderSizePixel=0
  235. nav.ZIndex=2
  236. local title=Instance.new("TextLabel",nav)
  237. title.Size=UDim2.new(1,0,.25,2)
  238. title.BackgroundTransparency=1
  239. title.Text="None"
  240. title.TextColor3=Color3.new(0,0,0)
  241. title.Font=Enum.Font.ArialBold
  242. title.FontSize=Enum.FontSize.Size10
  243. title.ZIndex=2
  244. local player=Instance.new("Frame",nav)
  245. player.Name="Player"
  246. player.Size=UDim2.new(1,-20,0,4)
  247. player.BackgroundColor3=Color3.new(.7,.7,.7)
  248. player.BorderSizePixel=0
  249. player.ZIndex=2
  250. player.Position=UDim2.new(0,10,0.5,-2)
  251. local line=Instance.new("Frame",player)
  252. line.Size=UDim2.new(0,0,1,0)
  253. line.BackgroundColor3=Color3.new(0,0,0)
  254. line.BorderSizePixel=0
  255. line.ZIndex=2
  256. local hldr=Instance.new("Frame",frm)
  257. hldr.Name="Holder"
  258. hldr.Size=UDim2.new(1,0,.9,0)
  259. hldr.Position=UDim2.new(0,0,.1,0)
  260. hldr.BackgroundTransparency=1
  261. local function pagify(par,maxPages)
  262. local curPage=1
  263. par:ClearAllChildren()
  264. local cont=Instance.new("Frame",par)
  265. cont.Name="Cont"
  266. cont.Size=UDim2.new(.9,0,.9,0)
  267. cont.BackgroundTransparency=1
  268. local pageFrm=Instance.new("Frame",par)
  269. pageFrm.Name="Pages"
  270. pageFrm.Size=UDim2.new(1,0,.1,0)
  271. pageFrm.Position=UDim2.new(0,0,.9,0)
  272. pageFrm.BackgroundTransparency=1
  273.  
  274. local nex=Instance.new("TextButton",pageFrm)
  275. nex.Name="nex"
  276. nex.Size=UDim2.new(0.25,0,1,0)
  277. nex.Position=UDim2.new(.75,0,0,0)
  278. nex.BackgroundColor3=Color3.new(.5,.5,.5)
  279. nex.BorderSizePixel=0
  280. nex.TextColor3=Color3.new(1,1,1)
  281. nex.Font=Enum.Font.ArialBold
  282. nex.TextStrokeTransparency=.9
  283. nex.ZIndex=2
  284. nex.Text="NEXT"
  285. local prev=nex:Clone()
  286. prev.Parent=pageFrm
  287. prev.Name="prev"
  288. prev.Position=UDim2.new(0,0,0,0)
  289. prev.Text="PREV"
  290. local count=Instance.new("TextLabel",pageFrm)
  291. count.Size=UDim2.new(.25,0,1,0)
  292. count.Position=UDim2.new(.25,0,0,0)
  293. count.BackgroundTransparency=1
  294. count.TextColor3=Color3.new(0,0,0)
  295. count.Font=Enum.Font.ArialBold
  296. count.FontSize=Enum.FontSize.Size18
  297. count.Text="Page 1"
  298. count.ZIndex=2
  299. local box=Instance.new("TextBox",pageFrm)
  300. box.Name="Box"
  301. box.Size=UDim2.new(.25,0,1,0)
  302. box.Position=UDim2.new(.5,0,0,0)
  303. box.BackgroundColor3=Color3.new(.8,.8,.8)
  304. box.BorderSizePixel=0
  305. box.TextColor3=Color3.new(0,0,0)
  306. box.ClipsDescendants=true
  307. box.FontSize=Enum.FontSize.Size14
  308. box.Text="SEARCH"
  309. box.Font=Enum.Font.ArialBold
  310.  
  311. nex.MouseButton1Down:connect(function()
  312. if curPage<maxPages and cont:findFirstChild(curPage+1) then
  313. curPage=curPage+1
  314. for a,d in pairs(cont:GetChildren()) do
  315. if d:IsA'Frame' then
  316. d.Visible=false
  317. end
  318. end
  319. cont[curPage].Visible=true
  320. count.Text="Page "..curPage
  321. end
  322. end)
  323. prev.MouseButton1Down:connect(function()
  324. if curPage>1 and cont:findFirstChild(curPage-1) then
  325. curPage=curPage-1
  326. for a,d in pairs(cont:GetChildren()) do
  327. if d:IsA'Frame' then
  328. d.Visible=false
  329. end
  330. end
  331. cont[curPage].Visible=true
  332. count.Text="Page "..curPage
  333. end
  334. end)
  335. return cont
  336. end
  337. local playlist=Instance.new("Frame",hldr)
  338. playlist.Name="Playlist"
  339. playlist.Size=UDim2.new(1,0,1,0)
  340. playlist.BackgroundColor3=Color3.new(.9,.9,.9)
  341. playlist.BorderSizePixel=0
  342. local function music(list)
  343. table.sort(list,function(a,b)
  344. return a[1]<b[1]
  345. end)
  346. local curPg
  347. local pages=math.ceil(#list/10)
  348. local tab={}
  349. local songsCont=pagify(playlist,pages)
  350. for i=1,pages do
  351. local pg=Instance.new("Frame",songsCont)
  352. local dim=1
  353. pg.Name=i
  354. pg.Size=UDim2.new(1,0,1,0)
  355. pg.BackgroundTransparency=1
  356. if i~=1 then pg.Visible=false end
  357. for a=1,10 do
  358. if #tab<#list then
  359. local m=Instance.new("Frame",pg)
  360. table.insert(tab,m)
  361. m.Size=UDim2.new(1,0,0,24)
  362. m.ClipsDescendants=true
  363. m.Position=UDim2.new(0,0,0,(a-1)*24)
  364. m.BackgroundTransparency=1
  365. m.Name=a
  366. local label=Instance.new("TextButton",m)
  367. label.Size=UDim2.new(1,-20,1,0)
  368. label.Position=UDim2.new(0,20,0,0)
  369. label.AutoButtonColor=false
  370. label.BackgroundColor3=Color3.new(dim,dim,dim)
  371. label.BorderSizePixel=0
  372. label.TextColor3=Color3.new(1-dim,1-dim,1-dim)
  373. label.Font=Enum.Font.ArialBold
  374. label.FontSize=Enum.FontSize.Size18
  375. label.TextStrokeTransparency=.9
  376. label.Name=list[#tab][2]
  377. label.Text=list[#tab][1]
  378. label.MouseButton1Down:connect(function()
  379. playSong(label.Name)
  380. title.Text=label.Text
  381. end)
  382. local letter=Instance.new("TextLabel",m)
  383. letter.Size=UDim2.new(0,20,0,20)
  384. letter.Position=UDim2.new(0,0,.5,-10)
  385. letter. BackgroundTransparency=1
  386. letter.TextColor3=Color3.new(0,0,0)
  387. letter.Font=Enum.Font.ArialBold
  388. letter.FontSize=Enum.FontSize.Size14
  389. letter.Text=list[#tab][1]:sub(1,1):upper()
  390. dim=dim-.01
  391. end
  392. end
  393. end
  394. local function volumeC()
  395. local vol=Instance.new("Frame",songsCont.Parent)
  396. local val=Instance.new("NumberValue",plr)
  397. val.Name="Volume"
  398. val.Value=.5
  399. vol.Name="Volume"
  400. vol.Size=UDim2.new(.1,0,.9,0)
  401. vol.Position=UDim2.new(0.9,0,0,0)
  402. vol.BackgroundTransparency=1
  403. local control=Instance.new("Frame",vol)
  404. control.Name="Control"
  405. control.Size=UDim2.new(1,0,1,0)
  406. control.BackgroundTransparency=1
  407. control.ClipsDescendants=true
  408. local bar=Instance.new("Frame",control)
  409. bar.Name="Bar"
  410. bar.Size=UDim2.new(0,4,0,control.AbsoluteSize.Y)
  411. bar.Position=UDim2.new(.5,-2,0,10)
  412. bar.BackgroundColor3=Color3.new(1,1,1)
  413. bar.BorderSizePixel=0
  414. bar.ZIndex=2
  415. local back=Instance.new("Frame",control)
  416. back.Name="Back"
  417. back.Size=UDim2.new(0,4,0,bar.Size.Y.Offset-10)
  418. back.Position=UDim2.new(.5,-2,0,0)
  419. back.BackgroundColor3=Color3.new(.2,.2,.2)
  420. back.BorderSizePixel=0
  421. local mover=Instance.new("Frame",bar)
  422. mover.Size=UDim2.new(0,50,0,10)
  423. mover.Position=UDim2.new(0.5,-25,0,-10)
  424. mover.BackgroundColor3=Color3.new(0,0,0)
  425. mover.BorderSizePixel=0
  426. mover.ZIndex=3
  427. local click=Instance.new("TextButton",control)
  428. click.Name="Click"
  429. click.Size=UDim2.new(1,0,0,10)
  430. click.Position=UDim2.new(0,0,0,bar.Position.Y.Offset-10)
  431. click.BackgroundTransparency=1
  432. click.Text=""
  433. click.Draggable=true
  434. slider(vol)
  435. val.Changed:connect(function()
  436. pcall(function()
  437. curSong.Volume=val.Value
  438. end)
  439. end)
  440. end
  441. volumeC()
  442. local box=songsCont.Parent.Pages.Box
  443. local function query(m)
  444. local list={}
  445. for a,d in pairs(songs) do
  446. if d[1]:lower():find(m:lower()) then
  447. table.insert(list,d)
  448. end
  449. end
  450. return list
  451. end
  452. box.FocusLost:connect(function(e)
  453. if e then
  454. music(query(box.Text))
  455. end
  456. end)
  457. spawn(function()
  458. while wait() do
  459. if curSong then
  460. line.Size=UDim2.new(curSong.TimePosition/curSong.TimeLength,0,1,0)
  461. end
  462. end
  463. end)
  464. end
  465. music(songs)
  466. end
  467.  
  468. loadMenu()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement