Advertisement
yougotoof

audio vis

Dec 27th, 2018
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.02 KB | None | 0 0
  1. --https://github.com/Mokiros/roblox-FE-compatibility
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,game,owner = owner,game
  4. local RealPlayer = Player
  5. do
  6. print("FE Compatibility code by Mokiros")
  7. local rp = RealPlayer
  8. script.Parent = rp.Character
  9.  
  10. --RemoteEvent for communicating
  11. local Event = Instance.new("RemoteEvent")
  12. Event.Name = "UserInput_Event"
  13.  
  14. --Fake event to make stuff like Mouse.KeyDown work
  15. local function fakeEvent()
  16. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  17. t.connect = t.Connect
  18. return t
  19. end
  20.  
  21. --Creating fake input objects with fake variables
  22. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
  23. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  24. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  25. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  26. end}
  27. --Merged 2 functions into one by checking amount of arguments
  28. CAS.UnbindAction = CAS.BindAction
  29.  
  30. --This function will trigger the events that have been :Connect()'ed
  31. local function te(self,ev,...)
  32. local t = m[ev]
  33. if t and t._fakeEvent then
  34. for _,f in pairs(t.Functions) do
  35. f(...)
  36. end
  37. end
  38. end
  39. m.TrigEvent = te
  40. UIS.TrigEvent = te
  41.  
  42. Event.OnServerEvent:Connect(function(plr,io)
  43. if plr~=rp then return end
  44. m.Target = io.Target
  45. m.Hit = io.Hit
  46. if not io.isMouse then
  47. local b = io.UserInputState == Enum.UserInputState.Begin
  48. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  49. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  50. end
  51. if io.UserInputType == Enum.UserInputType.MouseButton2 then
  52. return m:TrigEvent(b and "Button2Down" or "Button2Up")
  53. end
  54. for _,t in pairs(CAS.Actions) do
  55. for _,k in pairs(t.Keys) do
  56. if k==io.KeyCode then
  57. t.Function(t.Name,io.UserInputState,io)
  58. end
  59. end
  60. end
  61. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  62. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  63. end
  64. end)
  65. Event.Parent = NLS([==[
  66. local Player = game:GetService("Players").LocalPlayer
  67. local Event = script:WaitForChild("UserInput_Event")
  68.  
  69. local Mouse = Player:GetMouse()
  70. local UIS = game:GetService("UserInputService")
  71. local input = function(io,a)
  72. if a then return end
  73. --Since InputObject is a client-side instance, we create and pass table instead
  74. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  75. end
  76. UIS.InputBegan:Connect(input)
  77. UIS.InputEnded:Connect(input)
  78.  
  79. local h,t
  80. --Give the server mouse data 30 times every second, but only if the values changed
  81. --If player is not moving their mouse, client won't fire events
  82. while wait(1/30) do
  83. if h~=Mouse.Hit or t~=Mouse.Target then
  84. h,t=Mouse.Hit,Mouse.Target
  85. Event:FireServer({isMouse=true,Target=t,Hit=h})
  86. end
  87. end]==],Player.Character)
  88.  
  89. ----Sandboxed game object that allows the usage of client-side methods and services
  90. --Real game object
  91. local _rg = game
  92.  
  93. --Metatable for fake service
  94. local fsmt = {
  95. __index = function(self,k)
  96. local s = rawget(self,"_RealService")
  97. if s then
  98. return typeof(s[k])=="function"
  99. and function(_,...)return s[k](s,...)end or s[k]
  100. end
  101. end,
  102. __newindex = function(self,k,v)
  103. local s = rawget(self,"_RealService")
  104. if s then s[k]=v end
  105. end
  106. }
  107. local function FakeService(t,RealService)
  108. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  109. return setmetatable(t,fsmt)
  110. end
  111.  
  112. --Fake game object
  113. local g = {
  114. GetService = function(self,s)
  115. return rawget(self,s) or _rg:GetService(s)
  116. end,
  117. Players = FakeService({
  118. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  119. },"Players"),
  120. UserInputService = FakeService(UIS,"UserInputService"),
  121. ContextActionService = FakeService(CAS,"ContextActionService"),
  122. RunService = FakeService({
  123. _btrs = {},
  124. RenderStepped = _rg:GetService("RunService").Heartbeat,
  125. BindToRenderStep = function(self,name,_,fun)
  126. self._btrs[name] = self.Heartbeat:Connect(fun)
  127. end,
  128. UnbindFromRenderStep = function(self,name)
  129. self._btrs[name]:Disconnect()
  130. end,
  131. },"RunService")
  132. }
  133. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  134. g.service = g.GetService
  135. FakeService(g,game)
  136. --Changing owner to fake player object to support owner:GetMouse()
  137. game,owner = g,g.Players.LocalPlayer
  138. end
  139.  
  140. --[[
  141. edited by mr steal yo bork with a sweet gui
  142. credits goes to the original creators
  143. --]]
  144.  
  145. -- visualizer
  146. local Parts = {}
  147. local Parts2 = {}
  148. local Direction = 1
  149. local loudness = 0
  150. local TColor = BrickColor.new("Black")
  151. for i = 1, 100 do
  152. local p = Instance.new("Part", game.Players.LocalPlayer.Character.Torso)
  153. p.Size = Vector3.new(0.2, 0.2, 0.2)
  154. p.Anchored = true
  155. p.CanCollide = false
  156. p.Material = "Neon"
  157. p.Position = game.Players.LocalPlayer.Character.Torso.Position
  158. table.insert(Parts, p)
  159. end
  160. for i = 1, 100 do
  161. local p = Instance.new("Part", game.Players.LocalPlayer.Character.Torso)
  162. p.Size = Vector3.new(0.2, 0.2, 0.2)
  163. p.Anchored = true
  164. p.CanCollide = false
  165. p.Material = "Neon"
  166. p.Position = game.Players.LocalPlayer.Character.Torso.Position
  167. table.insert(Parts2, p)
  168. end
  169. local sound = Instance.new("Sound", game.Players.LocalPlayer.Character.Torso)
  170. sound.SoundId = "rbxassetid://574539049"
  171. sound.Volume = 1
  172. sound:Play()
  173. spawn(function()
  174. local SelectedPart = 0
  175. while true do
  176. if Direction == 1 then
  177. if SelectedPart < #Parts then
  178. SelectedPart = SelectedPart + Direction
  179. else
  180. Direction = -1
  181. TColor = BrickColor.Random()
  182. end
  183. elseif Direction == -1 then
  184. if SelectedPart > 1 then
  185. SelectedPart = SelectedPart + Direction
  186. else
  187. Direction = 1
  188. TColor = BrickColor.Random()
  189. end
  190. end
  191. local sel = Parts[SelectedPart]
  192. local sel2 = Parts2[SelectedPart]
  193. sel.BrickColor = BrickColor.Random()
  194. sel2.BrickColor = BrickColor.Random()
  195. loudness = sound.PlaybackLoudness / 500
  196. sel.Size = Vector3.new(loudness, loudness, 0.2)
  197. sel2.Size = Vector3.new(loudness, loudness, 0.2)
  198. wait()
  199. sel.BrickColor = TColor
  200. sel2.BrickColor = TColor
  201. end
  202. end)
  203. game:GetService("RunService").RenderStepped:connect(function()
  204. for i = 1, #Parts do
  205. if i == 1 then
  206. Parts[i].CFrame = Parts[i].CFrame:lerp(game.Players.LocalPlayer.Character.Torso.CFrame, 0.9)
  207. else
  208. Parts[i].CFrame = Parts[i].CFrame:lerp(Parts[i - 1].CFrame * CFrame.Angles(-loudness / 20, math.sin(-loudness / 50), 0) * CFrame.new(0, 0, 0.15), 0.8)
  209. end
  210. end
  211. for i = 1, #Parts2 do
  212. if i == 1 then
  213. Parts2[i].CFrame = Parts2[i].CFrame:lerp(game.Players.LocalPlayer.Character.Torso.CFrame, 0.9)
  214. else
  215. Parts2[i].CFrame = Parts2[i].CFrame:lerp(Parts2[i - 1].CFrame * CFrame.Angles(-loudness / 20, math.sin(loudness / 50), 0) * CFrame.new(0, 0, 0.15), 0.8)
  216. end
  217. end
  218. end)
  219.  
  220. -- visualizer gui
  221.  
  222. local visualizergui = Instance.new("ScreenGui")
  223. local Frame = Instance.new("Frame")
  224. local idvalue = Instance.new("TextBox")
  225. local play = Instance.new("TextButton")
  226. local volume = Instance.new("TextBox")
  227. local pitch = Instance.new("TextBox")
  228. local close = Instance.new("TextButton")
  229. local min = Instance.new("TextButton")
  230. local credits = Instance.new("TextLabel")
  231. local open = Instance.new("TextButton")
  232. local set2 = Instance.new("TextButton")
  233. local set1 = Instance.new("TextButton")
  234. local loop = Instance.new("TextButton")
  235.  
  236. --properties xd
  237. visualizergui.Name = "visualizergui"
  238. visualizergui.Parent = game.Players.LocalPlayer.PlayerGui
  239.  
  240. Frame.Parent = visualizergui
  241. Frame.BackgroundColor3 = Color3.new(0.701961, 0.952941, 1)
  242. Frame.BackgroundTransparency = 0.20000000298023
  243. Frame.BorderColor3 = Color3.new(0.211765, 0.329412, 0.415686)
  244. Frame.BorderSizePixel = 8
  245. Frame.Position = UDim2.new(0, 51, 0, 213)
  246. Frame.Size = UDim2.new(0, 418, 0, 213)
  247. Frame.Active = true
  248. Frame.Draggable = true
  249. Frame.Visible = false
  250.  
  251. idvalue.Name = "idvalue"
  252. idvalue.Parent = Frame
  253. idvalue.BackgroundColor3 = Color3.new(0.666667, 1, 1)
  254. idvalue.BackgroundTransparency = 0.5
  255. idvalue.Size = UDim2.new(0, 418, 0, 50)
  256. idvalue.Font = Enum.Font.Fantasy
  257. idvalue.FontSize = Enum.FontSize.Size24
  258. idvalue.Text = "Put ID plz"
  259. idvalue.TextSize = 24
  260.  
  261. play.Name = "play"
  262. play.Parent = Frame
  263. play.BackgroundColor3 = Color3.new(0.666667, 1, 1)
  264. play.BackgroundTransparency = 0.44999998807907
  265. play.BorderColor3 = Color3.new(0.207843, 0.0901961, 0.0705882)
  266. play.BorderSizePixel = 3
  267. play.Position = UDim2.new(0, 9, 0, 82)
  268. play.Size = UDim2.new(0, 117, 0, 50)
  269. play.Font = Enum.Font.SourceSans
  270. play.FontSize = Enum.FontSize.Size28
  271. play.Text = "Play"
  272. play.TextSize = 28
  273.  
  274. volume.Name = "volume"
  275. volume.Parent = Frame
  276. volume.BackgroundColor3 = Color3.new(0.666667, 1, 1)
  277. volume.BackgroundTransparency = 0.44999998807907
  278. volume.BorderColor3 = Color3.new(0.207843, 0.0901961, 0.0705882)
  279. volume.BorderSizePixel = 3
  280. volume.Position = UDim2.new(0, 151, 0, 82)
  281. volume.Size = UDim2.new(0, 117, 0, 50)
  282. volume.Font = Enum.Font.SourceSans
  283. volume.FontSize = Enum.FontSize.Size28
  284. volume.Text = "Volume"
  285. volume.TextSize = 28
  286.  
  287. pitch.Name = "pitch"
  288. pitch.Parent = Frame
  289. pitch.BackgroundColor3 = Color3.new(0.666667, 1, 1)
  290. pitch.BackgroundTransparency = 0.44999998807907
  291. pitch.BorderColor3 = Color3.new(0.207843, 0.0901961, 0.0705882)
  292. pitch.BorderSizePixel = 3
  293. pitch.Position = UDim2.new(0, 291, 0, 82)
  294. pitch.Size = UDim2.new(0, 117, 0, 50)
  295. pitch.Font = Enum.Font.SourceSans
  296. pitch.FontSize = Enum.FontSize.Size28
  297. pitch.Text = "Pitch"
  298. pitch.TextSize = 28
  299.  
  300. close.Name = "close"
  301. close.Parent = Frame
  302. close.BackgroundColor3 = Color3.new(1, 0, 0.0156863)
  303. close.BackgroundTransparency = 0.40000000596046
  304. close.Position = UDim2.new(0, 393, 0, 190)
  305. close.Size = UDim2.new(0, 25, 0, 23)
  306. close.Font = Enum.Font.SourceSans
  307. close.FontSize = Enum.FontSize.Size28
  308. close.Text = "X"
  309. close.TextSize = 28
  310.  
  311. min.Name = "min"
  312. min.Parent = Frame
  313. min.BackgroundColor3 = Color3.new(0.286275, 0.286275, 1)
  314. min.BackgroundTransparency = 0.40000000596046
  315. min.Position = UDim2.new(0, 357, 0, 190)
  316. min.Size = UDim2.new(0, 25, 0, 23)
  317. min.Font = Enum.Font.SourceSans
  318. min.FontSize = Enum.FontSize.Size36
  319. min.Text = "-"
  320. min.TextSize = 36
  321.  
  322. credits.Name = "credits"
  323. credits.Parent = Frame
  324. credits.BackgroundColor3 = Color3.new(1, 1, 1)
  325. credits.BackgroundTransparency = 1
  326. credits.Position = UDim2.new(0, 0, 0, 161)
  327. credits.Size = UDim2.new(0, 200, 0, 52)
  328. credits.Font = Enum.Font.SourceSans
  329. credits.FontSize = Enum.FontSize.Size14
  330. credits.Text = "credits to mr steal yo bork for gui, i didn't make the visualizer credits to whoever leaked it or made it."
  331. credits.TextSize = 14
  332. credits.TextWrapped = true
  333.  
  334. open.Name = "open"
  335. open.Parent = visualizergui
  336. open.BackgroundColor3 = Color3.new(0.666667, 1, 1)
  337. open.BackgroundTransparency = 0.44999998807907
  338. open.BorderColor3 = Color3.new(0.207843, 0.0901961, 0.0705882)
  339. open.BorderSizePixel = 3
  340. open.Position = UDim2.new(0, 0, 0, 400)
  341. open.Size = UDim2.new(0, 59, 0, 50)
  342. open.Font = Enum.Font.SourceSans
  343. open.FontSize = Enum.FontSize.Size28
  344. open.Text = "Open"
  345. open.TextSize = 28
  346. open.Visible = false
  347.  
  348. set2.Name = "set2"
  349. set2.Parent = Frame
  350. set2.BackgroundColor3 = Color3.new(0.666667, 1, 1)
  351. set2.BackgroundTransparency = 0.44999998807907
  352. set2.BorderColor3 = Color3.new(0.207843, 0.0901961, 0.0705882)
  353. set2.BorderSizePixel = 3
  354. set2.Position = UDim2.new(0, 325, 0, 136)
  355. set2.Size = UDim2.new(0, 55, 0, 25)
  356. set2.Font = Enum.Font.SourceSans
  357. set2.FontSize = Enum.FontSize.Size24
  358. set2.Text = "Set"
  359. set2.TextSize = 24
  360. set2.TextWrapped = true
  361.  
  362. set1.Name = "set1"
  363. set1.Parent = Frame
  364. set1.BackgroundColor3 = Color3.new(0.666667, 1, 1)
  365. set1.BackgroundTransparency = 0.44999998807907
  366. set1.BorderColor3 = Color3.new(0.207843, 0.0901961, 0.0705882)
  367. set1.BorderSizePixel = 3
  368. set1.Position = UDim2.new(0, 181, 0, 136)
  369. set1.Size = UDim2.new(0, 55, 0, 25)
  370. set1.Font = Enum.Font.SourceSans
  371. set1.FontSize = Enum.FontSize.Size24
  372. set1.Text = "Set"
  373. set1.TextSize = 24
  374. set1.TextWrapped = true
  375.  
  376. loop.Name = "loop"
  377. loop.Parent = Frame
  378. loop.BackgroundColor3 = Color3.new(0.666667, 1, 1)
  379. loop.BackgroundTransparency = 0.44999998807907
  380. loop.BorderColor3 = Color3.new(0.207843, 0.0901961, 0.0705882)
  381. loop.BorderSizePixel = 3
  382. loop.Position = UDim2.new(0, 241, 0, 188)
  383. loop.Size = UDim2.new(0, 84, 0, 25)
  384. loop.Font = Enum.Font.SourceSans
  385. loop.FontSize = Enum.FontSize.Size18
  386. loop.Text = "Loop : OFF"
  387. loop.TextSize = 18
  388. loop.TextWrapped = true
  389.  
  390. -- functions
  391. function start()
  392. wait(0.5)
  393. Frame.Position = UDim2.new(0, -500, 0, 400)
  394. Frame.Visible = true
  395. Frame:TweenPosition(UDim2.new(0, 0, 0, 400),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,1)
  396. end
  397.  
  398. if game.Players.LocalPlayer.Character then
  399. start()
  400. else
  401. print'character not found plz try again XD'
  402. end
  403.  
  404. function minimize()
  405. Frame:TweenPosition(UDim2.new(0, 0, 0, 400),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,1)
  406. credits.Text = ""
  407. min.Text = ""
  408. close.Text = ""
  409. play.Text = ""
  410. pitch.Text = ""
  411. volume.Text = ""
  412. idvalue.Text = ""
  413. set1.Text = ""
  414. set2.Text = ""
  415. loop.Text = ""
  416. Frame:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  417. credits:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  418. min:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  419. close:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  420. idvalue:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  421. volume:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  422. play:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  423. pitch:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  424. loop:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  425. set1:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  426. set2:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  427. Frame:TweenPosition(UDim2.new(0, 0, 0, 400),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  428. wait(0.5)
  429. Frame.Visible = false
  430. open.Visible = true
  431. end
  432.  
  433. function show()
  434. open.Visible = false
  435. Frame.Position = UDim2.new(0, -500, 0, 400)
  436. Frame.Visible = true
  437. credits.Text = "credits to me for gui, i didn't make the visualizer credits to whoever leaked it or made it."
  438. min.Text = "-"
  439. close.Text = "X"
  440. play.Text = "Play"
  441. pitch.Text = "Pitch"
  442. volume.Text = "Volume"
  443. idvalue.Text = "Put ID plz"
  444. set1.Text = "Set"
  445. set2.Text = "Set"
  446. loop.Text = "Loop : OFF"
  447. Frame:TweenSize(UDim2.new(0, 418, 0, 213),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  448. credits:TweenSize(UDim2.new(0, 200, 0, 52),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  449. min:TweenSize(UDim2.new(0, 25, 0, 23),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  450. close:TweenSize(UDim2.new(0, 25, 0, 23),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  451. idvalue:TweenSize(UDim2.new(0, 418, 0, 50),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  452. volume:TweenSize(UDim2.new(0, 117, 0, 50),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  453. play:TweenSize(UDim2.new(0, 117, 0, 50),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  454. pitch:TweenSize(UDim2.new(0, 117, 0, 50),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  455. set1:TweenSize(UDim2.new(0, 55, 0, 25),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  456. loop:TweenSize(UDim2.new(0, 84, 0, 25),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  457. set2:TweenSize(UDim2.new(0, 55, 0, 25),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  458. Frame:TweenPosition(UDim2.new(0, 0, 0, 400),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint, 0.5)
  459. end
  460.  
  461. function exitdatshit()
  462. Frame:TweenPosition(UDim2.new(0, 0, 0, 400),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,1)
  463. credits.Text = ""
  464. min.Text = ""
  465. close.Text = ""
  466. play.Text = ""
  467. pitch.Text = ""
  468. volume.Text = ""
  469. idvalue.Text = ""
  470. Frame:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  471. credits:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  472. min:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  473. close:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  474. idvalue:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  475. volume:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  476. play:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  477. pitch:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  478. set1:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  479. set2:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  480. loop:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  481. Frame:TweenPosition(UDim2.new(0, 0, 0, 400),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  482. wait(0.5)
  483. visualizergui:Destroy()
  484. end
  485.  
  486. -- events
  487. wait(1)
  488. min.MouseButton1Down:connect(function()
  489. minimize()
  490. end)
  491.  
  492. open.MouseButton1Down:connect(function()
  493. show()
  494. end)
  495.  
  496. close.MouseButton1Down:connect(function()
  497. exitdatshit()
  498. end)
  499.  
  500. set1.MouseButton1Down:connect(function()
  501. sound.Volume = volume.Text
  502. end)
  503.  
  504. set2.MouseButton1Down:connect(function()
  505. sound.Pitch = pitch.Text
  506. end)
  507.  
  508. play.MouseButton1Down:connect(function()
  509. sound.TimePosition = 0
  510. sound.SoundId = "rbxassetid://" .. idvalue.Text
  511. end)
  512.  
  513. loop.MouseButton1Down:connect(function()
  514. if loop.Text == "Loop : OFF" then
  515. sound.Looped = true
  516. loop.Text = "Loop : ON"
  517. else
  518. sound.Looped = false
  519. loop.Text = "Loop : OFF"
  520. end
  521. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement