Advertisement
UniverseisCool

visualizer 1

Dec 3rd, 2017
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.24 KB | None | 0 0
  1. --[[
  2. Prefix - the symbol before saying a command, make sure it is 1 character long, the default is '/'.
  3. Color - the default color when the Rainbow command isn't active.
  4. Body - how high up or low the parts are from the HumanoidRootPart.
  5. Rainbow - depicts if the parts and pointlights are changing colors or not.
  6. Global - if the music is in the workspace or not.
  7. Angle - used to create shapes with the visualizer.
  8. Goal - [DON'T GO OVER 1 OR BELOW 0, IT'LL LAG THE GAME] how fast the parts reach their destination point.
  9. Split - another command to help create shapes with the visualizer.
  10. Parts - how many parts there're in the visualizer.
  11. Disp - how far away the parts are from the player.
  12. Power - how much the PlaybackLoudness is divided by. (depicts how long the parts get.)
  13. Material - the material of the parts.
  14. Play - changes the SoundId of the music, ex: Play 226205163
  15. Don't forget the Prefix before Play.
  16. Pause - pauses the sound.
  17. Resume - resumes the sound.
  18. Tpos - how far it is into the sound.
  19. MaxDis - how far the sound reaches in distance.
  20. Emit - how far before the sound starts getting quiet.
  21. Vol - how loud the sound is.
  22. Pitch - defines the pitch of the sound.
  23. Follow - changes who the parts follow.
  24. Whitelist - allows other people to use the commands above, including this one.
  25. ]]--
  26.  
  27. local Follow='LocalPlayer'
  28. local Plr=game.Players[Follow]
  29. local Char=Plr.Character
  30. local RootPart=Char.HumanoidRootPart
  31.  
  32. local Parts=Instance.new('Model')
  33. Parts.Parent=Char
  34.  
  35. local Whitelist={}
  36.  
  37. Whitelist[Plr.Name]={Name=Plr.Name,UserId=Plr.UserId}
  38.  
  39. local Settings={
  40. Prefix='/',
  41. Color='Institutional white',
  42. Body=-3,
  43. Rainbow=false,
  44. Global=false,
  45. Angle=24,
  46. Goal=.15,
  47. Split=5,
  48. Parts=0,
  49. Disposition=4,
  50. Power=450,
  51. Material='Neon',
  52. Colors={
  53. Color3.fromRGB(0,0,0),
  54. Color3.fromRGB(25,25,25),
  55. Color3.fromRGB(50,50,50),
  56. Color3.fromRGB(75,75,75),
  57. Color3.fromRGB(100,100,100),
  58. Color3.fromRGB(125,125,125),
  59. Color3.fromRGB(150,150,150),
  60. Color3.fromRGB(175,175,175),
  61. Color3.fromRGB(200,200,200),
  62. Color3.fromRGB(225,225,225),
  63. Color3.fromRGB(250,250,250),
  64. Color3.fromRGB(255,255,255),
  65. Color3.fromRGB(250,250,250),
  66. Color3.fromRGB(225,225,225),
  67. Color3.fromRGB(200,200,200),
  68. Color3.fromRGB(175,175,175),
  69. Color3.fromRGB(150,150,150),
  70. Color3.fromRGB(125,125,125),
  71. Color3.fromRGB(100,100,100),
  72. Color3.fromRGB(75,75,75),
  73. Color3.fromRGB(50,50,50),
  74. Color3.fromRGB(25,25,25)
  75. }
  76. }
  77.  
  78. function Sound(Name,Looped,Pitch,Volume,ID,Parent)
  79. local Snd=Instance.new('Sound')
  80. Snd.Name=Name
  81. Snd.SoundId='rbxassetid://680491857'..ID
  82. Snd.Looped=Looped
  83. Snd.PlaybackSpeed=Pitch
  84. Snd.Volume=Volume
  85. Snd.EmitterSize=10
  86. Snd.MaxDistance=100
  87. Snd.Parent=Parent
  88.  
  89. return Snd
  90. end
  91.  
  92. local Music=Sound('Music',true,1,1,0,RootPart)
  93.  
  94. function Part(Num)
  95. Settings.Parts=Num
  96.  
  97. for i,v in pairs(Parts:GetChildren()) do
  98. v:Destroy()
  99. end
  100.  
  101. for i=1,Num do
  102. local P=Instance.new('Part')
  103. local Light=Instance.new('PointLight')
  104. Light.Brightness=10
  105. Light.Range=10
  106. Light.Parent=P
  107. P.BrickColor=BrickColor.new(Settings.Color)
  108. P.Transparency=0
  109. P.Anchored=true
  110. P.CanCollide=false
  111. P.Material=Settings.Material
  112. P.Size=Vector3.new(.2,.2,.2)
  113. P.CFrame=CFrame.new(RootPart.CFrame.X,RootPart.CFrame.Y+Settings.Body,RootPart.CFrame.Z)
  114. P.Locked=true
  115. P.Parent=Parts
  116. end
  117. end
  118.  
  119. Part(31)
  120.  
  121. function ColorChange()
  122. while game:GetService'RunService'.RenderStepped:wait() do
  123. local Color=Settings.Colors[math.random(1,#Settings.Colors)]
  124. for i,v in pairs(Parts:GetChildren()) do
  125. v.Material=Settings.Material
  126. if Settings.Rainbow==false then
  127. v.BrickColor=BrickColor.new(Settings.Color)
  128. v.PointLight.Color=Color3.fromRGB(255,255,255)
  129. else
  130. v.BrickColor=BrickColor.new(Color)
  131. v.PointLight.Color=Color
  132. end
  133. end
  134. end
  135. end
  136.  
  137. local Rad=0
  138.  
  139. function Rot()
  140. while game:GetService'RunService'.RenderStepped:wait() do
  141. Rad=Rad+1
  142.  
  143. if Rad>=360 then
  144. Rad=0
  145. end
  146.  
  147. for i,v in pairs(Parts:GetChildren()) do
  148. v.CFrame=v.CFrame:Lerp(CFrame.new(RootPart.CFrame.X,RootPart.CFrame.Y+Settings.Body,RootPart.CFrame.Z)*CFrame.Angles(0,math.rad((360/Settings.Parts)*((i+(i*Settings.Angle))/Settings.Split)+Rad),0)*CFrame.new(0,0,Settings.Disposition+(v.Size.Z)),Settings.Goal)
  149. end
  150. end
  151. end
  152.  
  153. function Size()
  154. while game:GetService'RunService'.RenderStepped:wait() do
  155. for i,v in pairs(Parts:GetChildren()) do
  156. v.Size=v.Size:Lerp(Vector3.new(.2,(Music.PlaybackLoudness/Settings.Power)*math.random(4,8)),.2,Settings.Goal)
  157. end
  158. end
  159. end
  160.  
  161. spawn(Rot)
  162. spawn(Size)
  163. spawn(ColorChange)
  164.  
  165. function Chatted(Speaker,Message)
  166. for i,v in pairs(Whitelist) do
  167. if v.Name==Speaker.Name or v.UserId==Speaker.UserId then
  168. if Message:sub(1,6):lower():match(Settings.Prefix..'play ') then
  169. Music.SoundId='rbxassetid://'..Message:sub(7)
  170. Music:Play()
  171. elseif Message:sub(1,6):lower():match(Settings.Prefix..'pause') then
  172. Music:Pause()
  173. elseif Message:sub(1,7):lower():match(Settings.Prefix..'resume') then
  174. Music:Resume()
  175. elseif Message:sub(1,6):lower():match(Settings.Prefix..'tpos ') then
  176. Music.TimePosition=tonumber(Message:sub(7))
  177. elseif Message:sub(1,6):lower():match(Settings.Prefix..'emit ') then
  178. Music.EmitterSize=tonumber(Message:sub(7))
  179. elseif Message:sub(1,5):lower():match(Settings.Prefix..'vol ') then
  180. Music.Volume=tonumber(Message:sub(6))
  181. elseif Message:sub(1,7):lower():match(Settings.Prefix..'pitch ') then
  182. Music.PlaybackSpeed=tonumber(Message:sub(8))
  183. elseif Message:sub(1,8):lower():match(Settings.Prefix..'maxdis ') then
  184. Music.MaxDistance=tonumber(Message:sub(9))
  185. elseif Message:sub(1,8):lower():match(Settings.Prefix..'prefix ') then
  186. Settings.Prefix=Message:sub(9)
  187. elseif Message:sub(1,7):lower():match(Settings.Prefix..'angle ') then
  188. Settings.Angle=tonumber(Message:sub(8))
  189. elseif Message:sub(1,7):lower():match(Settings.Prefix..'split ') then
  190. Settings.Split=tonumber(Message:sub(8))
  191. elseif Message:sub(1,6):lower():match(Settings.Prefix..'goal ') then
  192. Settings.Goal=tonumber(Message:sub(7))
  193. elseif Message:sub(1,7):lower():match(Settings.Prefix..'color ') then
  194. Settings.Color=Message:sub(8)
  195. elseif Message:sub(1,6):lower():match(Settings.Prefix..'body ') then
  196. Settings.Body=tonumber(Message:sub(7))
  197. elseif Message:sub(1,10):lower():match(Settings.Prefix..'material ') then
  198. Settings.Material=Message:sub(11)
  199. elseif Message:sub(1,7):lower():match(Settings.Prefix..'global') then
  200. if Settings.Global==false then
  201. Settings.Global=true
  202. Music.Parent=workspace
  203. else
  204. Settings.Global=false
  205. Music.Parent=RootPart
  206. end
  207. elseif Message:sub(1,6):lower():match(Settings.Prefix..'disp ') then
  208. Settings.Disposition=tonumber(Message:sub(7))
  209. elseif Message:sub(1,7):lower():match(Settings.Prefix..'parts ') then
  210. Part(tonumber(Message:sub(8)))
  211. elseif Message:sub(1,7):lower():match(Settings.Prefix..'power ') then
  212. Settings.Power=tonumber(Message:sub(8))
  213. elseif Message:sub(1,8):lower():match(Settings.Prefix..'follow ') then
  214. for i,v in pairs(game.Players:GetPlayers()) do
  215. if v.Name:lower():match(Message:sub(9):lower()) then
  216. Follow=v.Name
  217. Plr=game.Players[Follow]
  218. Char=Plr.Character
  219. RootPart=Char.HumanoidRootPart
  220. if Settings.Global==false then
  221. Music.Parent=RootPart
  222. end
  223. end
  224. end
  225. elseif Message:sub(1,11):lower():match(Settings.Prefix..'whitelist ') then
  226. for i,v in pairs(game.Players:GetPlayers()) do
  227. if v.Name:lower():match(Message:sub(12):lower()) then
  228. Whitelist[v.Name]={Name=v.Name,UserId=v.UserId}
  229. end
  230. end
  231. elseif Message:sub(1,8):lower():match(Settings.Prefix..'flash') then
  232. if Settings.Rainbow==false then
  233. Settings.Rainbow=true
  234. else
  235. Settings.Rainbow=false
  236. end
  237. end
  238. end
  239. end
  240. end
  241.  
  242. game.Players.PlayerAdded:connect(function(Plyr)
  243. Plyr.Chatted:connect(function(Message) Chatted(Plyr,Message) end)
  244. end)
  245.  
  246. for i,v in pairs(game.Players:GetPlayers()) do
  247. v.Chatted:connect(function(Message) Chatted(v,Message) end)
  248. end
  249.  
  250. local visualizergui = Instance.new("ScreenGui")
  251. local Frame = Instance.new("Frame")
  252. local idvalue = Instance.new("TextBox")
  253. local play = Instance.new("TextButton")
  254. local volume = Instance.new("TextBox")
  255. local pitch = Instance.new("TextBox")
  256. local close = Instance.new("TextButton")
  257. local min = Instance.new("TextButton")
  258. local credits = Instance.new("TextLabel")
  259. local open = Instance.new("TextButton")
  260. local set2 = Instance.new("TextButton")
  261. local set1 = Instance.new("TextButton")
  262. local loop = Instance.new("TextButton")
  263.  
  264. --properties xd
  265. visualizergui.Name = "visualizergui"
  266. visualizergui.Parent = game.Players.LocalPlayer.PlayerGui
  267.  
  268. Frame.Parent = visualizergui
  269. Frame.BackgroundColor3 = Color3.new(0.701961, 0.952941, 1)
  270. Frame.BackgroundTransparency = 0.20000000298023
  271. Frame.BorderColor3 = Color3.new(0.211765, 0.329412, 0.415686)
  272. Frame.BorderSizePixel = 8
  273. Frame.Position = UDim2.new(0, 51, 0, 213)
  274. Frame.Size = UDim2.new(0, 418, 0, 213)
  275. Frame.Active = true
  276. Frame.Draggable = true
  277. Frame.Visible = false
  278.  
  279. idvalue.Name = "idvalue"
  280. idvalue.Parent = Frame
  281. idvalue.BackgroundColor3 = Color3.new(0.666667, 1, 1)
  282. idvalue.BackgroundTransparency = 0.5
  283. idvalue.Size = UDim2.new(0, 418, 0, 50)
  284. idvalue.Font = Enum.Font.Fantasy
  285. idvalue.FontSize = Enum.FontSize.Size24
  286. idvalue.Text = "Put ID plz"
  287. idvalue.TextSize = 24
  288.  
  289. play.Name = "play"
  290. play.Parent = Frame
  291. play.BackgroundColor3 = Color3.new(0.666667, 1, 1)
  292. play.BackgroundTransparency = 0.44999998807907
  293. play.BorderColor3 = Color3.new(0.207843, 0.0901961, 0.0705882)
  294. play.BorderSizePixel = 3
  295. play.Position = UDim2.new(0, 9, 0, 82)
  296. play.Size = UDim2.new(0, 117, 0, 50)
  297. play.Font = Enum.Font.SourceSans
  298. play.FontSize = Enum.FontSize.Size28
  299. play.Text = "Play"
  300. play.TextSize = 28
  301.  
  302. volume.Name = "volume"
  303. volume.Parent = Frame
  304. volume.BackgroundColor3 = Color3.new(0.666667, 1, 1)
  305. volume.BackgroundTransparency = 0.44999998807907
  306. volume.BorderColor3 = Color3.new(0.207843, 0.0901961, 0.0705882)
  307. volume.BorderSizePixel = 3
  308. volume.Position = UDim2.new(0, 151, 0, 82)
  309. volume.Size = UDim2.new(0, 117, 0, 50)
  310. volume.Font = Enum.Font.SourceSans
  311. volume.FontSize = Enum.FontSize.Size28
  312. volume.Text = "Volume"
  313. volume.TextSize = 28
  314.  
  315. pitch.Name = "pitch"
  316. pitch.Parent = Frame
  317. pitch.BackgroundColor3 = Color3.new(0.666667, 1, 1)
  318. pitch.BackgroundTransparency = 0.44999998807907
  319. pitch.BorderColor3 = Color3.new(0.207843, 0.0901961, 0.0705882)
  320. pitch.BorderSizePixel = 3
  321. pitch.Position = UDim2.new(0, 291, 0, 82)
  322. pitch.Size = UDim2.new(0, 117, 0, 50)
  323. pitch.Font = Enum.Font.SourceSans
  324. pitch.FontSize = Enum.FontSize.Size28
  325. pitch.Text = "Pitch"
  326. pitch.TextSize = 28
  327.  
  328. close.Name = "close"
  329. close.Parent = Frame
  330. close.BackgroundColor3 = Color3.new(1, 0, 0.0156863)
  331. close.BackgroundTransparency = 0.40000000596046
  332. close.Position = UDim2.new(0, 393, 0, 190)
  333. close.Size = UDim2.new(0, 25, 0, 23)
  334. close.Font = Enum.Font.SourceSans
  335. close.FontSize = Enum.FontSize.Size28
  336. close.Text = "X"
  337. close.TextSize = 28
  338.  
  339. min.Name = "min"
  340. min.Parent = Frame
  341. min.BackgroundColor3 = Color3.new(0.286275, 0.286275, 1)
  342. min.BackgroundTransparency = 0.40000000596046
  343. min.Position = UDim2.new(0, 357, 0, 190)
  344. min.Size = UDim2.new(0, 25, 0, 23)
  345. min.Font = Enum.Font.SourceSans
  346. min.FontSize = Enum.FontSize.Size36
  347. min.Text = "-"
  348. min.TextSize = 36
  349.  
  350. credits.Name = "credits"
  351. credits.Parent = Frame
  352. credits.BackgroundColor3 = Color3.new(1, 1, 1)
  353. credits.BackgroundTransparency = 1
  354. credits.Position = UDim2.new(0, 0, 0, 161)
  355. credits.Size = UDim2.new(0, 200, 0, 52)
  356. credits.Font = Enum.Font.SourceSans
  357. credits.FontSize = Enum.FontSize.Size14
  358. credits.Text = "Gui by xX360Sc0PeZXx"
  359. credits.TextSize = 14
  360. credits.TextWrapped = true
  361.  
  362. open.Name = "open"
  363. open.Parent = visualizergui
  364. open.BackgroundColor3 = Color3.new(0.666667, 1, 1)
  365. open.BackgroundTransparency = 0.44999998807907
  366. open.BorderColor3 = Color3.new(0.207843, 0.0901961, 0.0705882)
  367. open.BorderSizePixel = 3
  368. open.Position = UDim2.new(0, 0, 0, 400)
  369. open.Size = UDim2.new(0, 59, 0, 50)
  370. open.Font = Enum.Font.SourceSans
  371. open.FontSize = Enum.FontSize.Size28
  372. open.Text = "Open"
  373. open.TextSize = 28
  374. open.Visible = false
  375.  
  376. set2.Name = "set2"
  377. set2.Parent = Frame
  378. set2.BackgroundColor3 = Color3.new(0.666667, 1, 1)
  379. set2.BackgroundTransparency = 0.44999998807907
  380. set2.BorderColor3 = Color3.new(0.207843, 0.0901961, 0.0705882)
  381. set2.BorderSizePixel = 3
  382. set2.Position = UDim2.new(0, 325, 0, 136)
  383. set2.Size = UDim2.new(0, 55, 0, 25)
  384. set2.Font = Enum.Font.SourceSans
  385. set2.FontSize = Enum.FontSize.Size24
  386. set2.Text = "Set"
  387. set2.TextSize = 24
  388. set2.TextWrapped = true
  389.  
  390. set1.Name = "set1"
  391. set1.Parent = Frame
  392. set1.BackgroundColor3 = Color3.new(0.666667, 1, 1)
  393. set1.BackgroundTransparency = 0.44999998807907
  394. set1.BorderColor3 = Color3.new(0.207843, 0.0901961, 0.0705882)
  395. set1.BorderSizePixel = 3
  396. set1.Position = UDim2.new(0, 181, 0, 136)
  397. set1.Size = UDim2.new(0, 55, 0, 25)
  398. set1.Font = Enum.Font.SourceSans
  399. set1.FontSize = Enum.FontSize.Size24
  400. set1.Text = "Set"
  401. set1.TextSize = 24
  402. set1.TextWrapped = true
  403.  
  404. loop.Name = "loop"
  405. loop.Parent = Frame
  406. loop.BackgroundColor3 = Color3.new(0.666667, 1, 1)
  407. loop.BackgroundTransparency = 0.44999998807907
  408. loop.BorderColor3 = Color3.new(0.207843, 0.0901961, 0.0705882)
  409. loop.BorderSizePixel = 3
  410. loop.Position = UDim2.new(0, 241, 0, 188)
  411. loop.Size = UDim2.new(0, 84, 0, 25)
  412. loop.Font = Enum.Font.SourceSans
  413. loop.FontSize = Enum.FontSize.Size18
  414. loop.Text = "Loop : OFF"
  415. loop.TextSize = 18
  416. loop.TextWrapped = true
  417.  
  418. -- functions
  419. function start()
  420. wait(0.5)
  421. Frame.Position = UDim2.new(0, -500, 0, 400)
  422. Frame.Visible = true
  423. Frame:TweenPosition(UDim2.new(0, 0, 0, 400),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,1)
  424. end
  425.  
  426. if game.Players.LocalPlayer.Character then
  427. start()
  428. else
  429. print'character not found plz try again XD'
  430. end
  431.  
  432. function minimize()
  433. Frame:TweenPosition(UDim2.new(0, 0, 0, 400),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,1)
  434. credits.Text = ""
  435. min.Text = ""
  436. close.Text = ""
  437. play.Text = ""
  438. pitch.Text = ""
  439. volume.Text = ""
  440. idvalue.Text = ""
  441. set1.Text = ""
  442. set2.Text = ""
  443. loop.Text = ""
  444. Frame:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  445. credits:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  446. min:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  447. close:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  448. idvalue:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  449. volume:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  450. play:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  451. pitch:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  452. loop:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  453. set1:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  454. set2:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  455. Frame:TweenPosition(UDim2.new(0, 0, 0, 400),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  456. wait(0.5)
  457. Frame.Visible = false
  458. open.Visible = true
  459. end
  460.  
  461. function show()
  462. open.Visible = false
  463. Frame.Position = UDim2.new(0, -500, 0, 400)
  464. Frame.Visible = true
  465. credits.Text = "credits to me for gui, i didn't make the visualizer credits to whoever leaked it or made it."
  466. min.Text = "-"
  467. close.Text = "X"
  468. play.Text = "Play"
  469. pitch.Text = "Pitch"
  470. volume.Text = "Volume"
  471. idvalue.Text = "Put ID plz"
  472. set1.Text = "Set"
  473. set2.Text = "Set"
  474. loop.Text = "Loop : OFF"
  475. Frame:TweenSize(UDim2.new(0, 418, 0, 213),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  476. credits:TweenSize(UDim2.new(0, 200, 0, 52),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  477. min:TweenSize(UDim2.new(0, 25, 0, 23),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  478. close:TweenSize(UDim2.new(0, 25, 0, 23),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  479. idvalue:TweenSize(UDim2.new(0, 418, 0, 50),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  480. volume:TweenSize(UDim2.new(0, 117, 0, 50),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  481. play:TweenSize(UDim2.new(0, 117, 0, 50),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  482. pitch:TweenSize(UDim2.new(0, 117, 0, 50),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  483. set1:TweenSize(UDim2.new(0, 55, 0, 25),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  484. loop:TweenSize(UDim2.new(0, 84, 0, 25),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  485. set2:TweenSize(UDim2.new(0, 55, 0, 25),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  486. Frame:TweenPosition(UDim2.new(0, 0, 0, 400),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint, 0.5)
  487. end
  488.  
  489. function exitdatshit()
  490. Frame:TweenPosition(UDim2.new(0, 0, 0, 400),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,1)
  491. credits.Text = ""
  492. min.Text = ""
  493. close.Text = ""
  494. play.Text = ""
  495. pitch.Text = ""
  496. volume.Text = ""
  497. idvalue.Text = ""
  498. Frame:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  499. credits:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  500. min:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  501. close:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  502. idvalue:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  503. volume:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  504. play:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  505. pitch:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  506. set1:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  507. set2:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  508. loop:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  509. Frame:TweenPosition(UDim2.new(0, 0, 0, 400),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  510. wait(0.5)
  511. visualizergui:Destroy()
  512. end
  513.  
  514. -- events
  515. wait(1)
  516. min.MouseButton1Down:connect(function()
  517. minimize()
  518. end)
  519.  
  520. open.MouseButton1Down:connect(function()
  521. show()
  522. end)
  523.  
  524. close.MouseButton1Down:connect(function()
  525. exitdatshit()
  526. end)
  527.  
  528. set1.MouseButton1Down:connect(function()
  529. Music.Volume = volume.Text
  530. end)
  531.  
  532. set2.MouseButton1Down:connect(function()
  533. Music.Pitch = pitch.Text
  534. end)
  535.  
  536. play.MouseButton1Down:connect(function()
  537. Music:Stop()
  538. Music.SoundId = "rbxassetid://" .. idvalue.Text
  539. wait(0.3)
  540. Music:Play()
  541. end)
  542.  
  543. loop.MouseButton1Down:connect(function()
  544. if loop.Text == "Loop : OFF" then
  545. Music.Looped = true
  546. loop.Text = "Loop : ON"
  547. else
  548. Music.Looped = false
  549. loop.Text = "Loop : OFF"
  550. end
  551. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement