Advertisement
jayrock3401

Untitled

Dec 23rd, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 47.34 KB | None | 0 0
  1. -- This script has been converted to FE by iPxter
  2.  
  3.  
  4. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  5. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  6. do
  7. print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  8. script.Parent = Player.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,Connect=function(self,f)self.Function=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()}
  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 and t.Function then
  34. t.Function(...)
  35. end
  36. end
  37. m.TrigEvent = te
  38. UIS.TrigEvent = te
  39.  
  40. Event.OnServerEvent:Connect(function(plr,io)
  41. if plr~=Player then return end
  42. if io.isMouse then
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. else
  46. local b = io.UserInputState == Enum.UserInputState.Begin
  47. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49. end
  50. for _,t in pairs(CAS.Actions) do
  51. for _,k in pairs(t.Keys) do
  52. if k==io.KeyCode then
  53. t.Function(t.Name,io.UserInputState,io)
  54. end
  55. end
  56. end
  57. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59. end
  60. end)
  61. Event.Parent = NLS([==[
  62. local Player = game:GetService("Players").LocalPlayer
  63. local Event = script:WaitForChild("UserInput_Event")
  64.  
  65. local UIS = game:GetService("UserInputService")
  66. local input = function(io,a)
  67. if a then return end
  68. --Since InputObject is a client-side instance, we create and pass table instead
  69. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  70. end
  71. UIS.InputBegan:Connect(input)
  72. UIS.InputEnded:Connect(input)
  73.  
  74. local Mouse = Player:GetMouse()
  75. local h,t
  76. --Give the server mouse data 30 times every second, but only if the values changed
  77. --If player is not moving their mouse, client won't fire events
  78. while wait(1/30) do
  79. if h~=Mouse.Hit or t~=Mouse.Target then
  80. h,t=Mouse.Hit,Mouse.Target
  81. Event:FireServer({isMouse=true,Target=t,Hit=h})
  82. end
  83. end]==],Player.Character)
  84. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  85. end
  86.  
  87.  
  88.  
  89. wait()
  90. for i,v in pairs(game.Workspace:GetChildren()) do
  91. if v.Name == "Soundbar" then
  92. v:Destroy()
  93. end
  94. end
  95. local runDummyScript = function(f,scri)
  96. local oldenv = getfenv(f)
  97. local newenv = setmetatable({}, {
  98. __index = function(_, k)
  99. if k:lower() == 'script' then
  100. return scri
  101. else
  102. return oldenv[k]
  103. end
  104. end
  105. })
  106. setfenv(f, newenv)
  107. ypcall(function() f() end)
  108. end
  109. function cycle(num)
  110. local section=num % 1 * 3;
  111. local secondary=0.5 * math.pi * (section % 1);
  112. if section < 1 then
  113. return 1,1 - math.cos(secondary),1 - math.sin(secondary);
  114. elseif section < 2 then
  115. return 1 - math.sin(secondary),1,1 - math.cos(secondary);
  116. else
  117. return 1 - math.cos(secondary),1 - math.sin(secondary),1;
  118. end
  119. end
  120. cors = {}
  121. mas = Instance.new("Model",game:GetService("Lighting"))
  122. mas.Name = "CompiledModel"
  123. o1 = Instance.new("Model")
  124. o1.Name = "Soundbar"
  125. o1.Parent = mas
  126. o2 = Instance.new("Part")
  127. o2.Name = "0"
  128. o2.Parent = o1
  129. o2.Position = Vector3.new(9.5, 0.200000018, 0)
  130. o2.Anchored = true
  131. o2.CFrame = CFrame.new(9.5, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  132. o2.CanCollide = false
  133. o2.Size = Vector3.new(0.5, 0.200000003, 0.5)
  134. o2.BottomSurface = Enum.SurfaceType.Smooth
  135. o2.TopSurface = Enum.SurfaceType.Smooth
  136. o3 = Instance.new("SpecialMesh")
  137. o3.Parent = o2
  138. o3.MeshId = "rbxassetid://9856898"
  139. o3.Scale = Vector3.new(1, 0.400000006, 1)
  140. o3.TextureId = "rbxassetid://2114473"
  141. o3.MeshType = Enum.MeshType.FileMesh
  142. o4 = Instance.new("Part")
  143. o4.Name = "9"
  144. o4.Parent = o1
  145. o4.Position = Vector3.new(5, 0.200000018, 0)
  146. o4.Anchored = true
  147. o4.CFrame = CFrame.new(5, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  148. o4.CanCollide = false
  149. o4.Size = Vector3.new(0.5, 0.200000003, 0.5)
  150. o4.BottomSurface = Enum.SurfaceType.Smooth
  151. o4.TopSurface = Enum.SurfaceType.Smooth
  152. o5 = Instance.new("SpecialMesh")
  153. o5.Parent = o4
  154. o5.MeshId = "rbxassetid://9856898"
  155. o5.Scale = Vector3.new(1, 0.400000006, 1)
  156. o5.TextureId = "rbxassetid://2114473"
  157. o5.MeshType = Enum.MeshType.FileMesh
  158. o6 = Instance.new("Part")
  159. o6.Name = "10"
  160. o6.Parent = o1
  161. o6.Position = Vector3.new(4.5, 0.200000018, 0)
  162. o6.Anchored = true
  163. o6.CFrame = CFrame.new(4.5, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  164. o6.CanCollide = false
  165. o6.Size = Vector3.new(0.5, 0.200000003, 0.5)
  166. o6.BottomSurface = Enum.SurfaceType.Smooth
  167. o6.TopSurface = Enum.SurfaceType.Smooth
  168. o7 = Instance.new("SpecialMesh")
  169. o7.Parent = o6
  170. o7.MeshId = "rbxassetid://9856898"
  171. o7.Scale = Vector3.new(1, 0.400000006, 1)
  172. o7.TextureId = "rbxassetid://2114473"
  173. o7.MeshType = Enum.MeshType.FileMesh
  174. o8 = Instance.new("Part")
  175. o8.Name = "11"
  176. o8.Parent = o1
  177. o8.Position = Vector3.new(4, 0.200000018, 0)
  178. o8.Anchored = true
  179. o8.CFrame = CFrame.new(4, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  180. o8.CanCollide = false
  181. o8.Size = Vector3.new(0.5, 0.200000003, 0.5)
  182. o8.BottomSurface = Enum.SurfaceType.Smooth
  183. o8.TopSurface = Enum.SurfaceType.Smooth
  184. o9 = Instance.new("SpecialMesh")
  185. o9.Parent = o8
  186. o9.MeshId = "rbxassetid://9856898"
  187. o9.Scale = Vector3.new(1, 0.400000006, 1)
  188. o9.TextureId = "rbxassetid://2114473"
  189. o9.MeshType = Enum.MeshType.FileMesh
  190. o10 = Instance.new("Part")
  191. o10.Name = "12"
  192. o10.Parent = o1
  193. o10.Position = Vector3.new(3.5, 0.200000018, 0)
  194. o10.Anchored = true
  195. o10.CFrame = CFrame.new(3.5, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  196. o10.CanCollide = false
  197. o10.Size = Vector3.new(0.5, 0.200000003, 0.5)
  198. o10.BottomSurface = Enum.SurfaceType.Smooth
  199. o10.TopSurface = Enum.SurfaceType.Smooth
  200. o11 = Instance.new("SpecialMesh")
  201. o11.Parent = o10
  202. o11.MeshId = "rbxassetid://9856898"
  203. o11.Scale = Vector3.new(1, 0.400000006, 1)
  204. o11.TextureId = "rbxassetid://2114473"
  205. o11.MeshType = Enum.MeshType.FileMesh
  206. o12 = Instance.new("Part")
  207. o12.Name = "13"
  208. o12.Parent = o1
  209. o12.Position = Vector3.new(3, 0.200000018, 0)
  210. o12.Anchored = true
  211. o12.CFrame = CFrame.new(3, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  212. o12.CanCollide = false
  213. o12.Size = Vector3.new(0.5, 0.200000003, 0.5)
  214. o12.BottomSurface = Enum.SurfaceType.Smooth
  215. o12.TopSurface = Enum.SurfaceType.Smooth
  216. o13 = Instance.new("SpecialMesh")
  217. o13.Parent = o12
  218. o13.MeshId = "rbxassetid://9856898"
  219. o13.Scale = Vector3.new(1, 0.400000006, 1)
  220. o13.TextureId = "rbxassetid://2114473"
  221. o13.MeshType = Enum.MeshType.FileMesh
  222. o14 = Instance.new("Part")
  223. o14.Name = "1"
  224. o14.Parent = o1
  225. o14.Position = Vector3.new(9, 0.200000018, 0)
  226. o14.Anchored = true
  227. o14.CFrame = CFrame.new(9, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  228. o14.CanCollide = false
  229. o14.Size = Vector3.new(0.5, 0.200000003, 0.5)
  230. o14.BottomSurface = Enum.SurfaceType.Smooth
  231. o14.TopSurface = Enum.SurfaceType.Smooth
  232. o15 = Instance.new("SpecialMesh")
  233. o15.Parent = o14
  234. o15.MeshId = "rbxassetid://9856898"
  235. o15.Scale = Vector3.new(1, 0.400000006, 1)
  236. o15.TextureId = "rbxassetid://2114473"
  237. o15.MeshType = Enum.MeshType.FileMesh
  238. o16 = Instance.new("Part")
  239. o16.Name = "19"
  240. o16.Parent = o1
  241. o16.Position = Vector3.new(0, 0.200000018, 0)
  242. o16.Anchored = true
  243. o16.CFrame = CFrame.new(0, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  244. o16.CanCollide = false
  245. o16.Size = Vector3.new(0.5, 0.200000003, 0.5)
  246. o16.BottomSurface = Enum.SurfaceType.Smooth
  247. o16.TopSurface = Enum.SurfaceType.Smooth
  248. o17 = Instance.new("SpecialMesh")
  249. o17.Parent = o16
  250. o17.MeshId = "rbxassetid://9856898"
  251. o17.Scale = Vector3.new(1, 0.400000006, 1)
  252. o17.TextureId = "rbxassetid://2114473"
  253. o17.MeshType = Enum.MeshType.FileMesh
  254. o18 = Instance.new("Part")
  255. o18.Name = "20"
  256. o18.Parent = o1
  257. o18.Position = Vector3.new(-0.5, 0.200000018, 0)
  258. o18.Anchored = true
  259. o18.CFrame = CFrame.new(-0.5, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  260. o18.CanCollide = false
  261. o18.Size = Vector3.new(0.5, 0.200000003, 0.5)
  262. o18.BottomSurface = Enum.SurfaceType.Smooth
  263. o18.TopSurface = Enum.SurfaceType.Smooth
  264. o19 = Instance.new("SpecialMesh")
  265. o19.Parent = o18
  266. o19.MeshId = "rbxassetid://9856898"
  267. o19.Scale = Vector3.new(1, 0.400000006, 1)
  268. o19.TextureId = "rbxassetid://2114473"
  269. o19.MeshType = Enum.MeshType.FileMesh
  270. o20 = Instance.new("Part")
  271. o20.Name = "21"
  272. o20.Parent = o1
  273. o20.Position = Vector3.new(-1, 0.200000018, 0)
  274. o20.Anchored = true
  275. o20.CFrame = CFrame.new(-1, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  276. o20.CanCollide = false
  277. o20.Size = Vector3.new(0.5, 0.200000003, 0.5)
  278. o20.BottomSurface = Enum.SurfaceType.Smooth
  279. o20.TopSurface = Enum.SurfaceType.Smooth
  280. o21 = Instance.new("SpecialMesh")
  281. o21.Parent = o20
  282. o21.MeshId = "rbxassetid://9856898"
  283. o21.Scale = Vector3.new(1, 0.400000006, 1)
  284. o21.TextureId = "rbxassetid://2114473"
  285. o21.MeshType = Enum.MeshType.FileMesh
  286. o22 = Instance.new("Part")
  287. o22.Name = "22"
  288. o22.Parent = o1
  289. o22.Position = Vector3.new(-1.5, 0.200000018, 0)
  290. o22.Anchored = true
  291. o22.CFrame = CFrame.new(-1.5, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  292. o22.CanCollide = false
  293. o22.Size = Vector3.new(0.5, 0.200000003, 0.5)
  294. o22.BottomSurface = Enum.SurfaceType.Smooth
  295. o22.TopSurface = Enum.SurfaceType.Smooth
  296. o23 = Instance.new("SpecialMesh")
  297. o23.Parent = o22
  298. o23.MeshId = "rbxassetid://9856898"
  299. o23.Scale = Vector3.new(1, 0.400000006, 1)
  300. o23.TextureId = "rbxassetid://2114473"
  301. o23.MeshType = Enum.MeshType.FileMesh
  302. o24 = Instance.new("Part")
  303. o24.Name = "23"
  304. o24.Parent = o1
  305. o24.Position = Vector3.new(-2, 0.200000018, 0)
  306. o24.Anchored = true
  307. o24.CFrame = CFrame.new(-2, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  308. o24.CanCollide = false
  309. o24.Size = Vector3.new(0.5, 0.200000003, 0.5)
  310. o24.BottomSurface = Enum.SurfaceType.Smooth
  311. o24.TopSurface = Enum.SurfaceType.Smooth
  312. o25 = Instance.new("SpecialMesh")
  313. o25.Parent = o24
  314. o25.MeshId = "rbxassetid://9856898"
  315. o25.Scale = Vector3.new(1, 0.400000006, 1)
  316. o25.TextureId = "rbxassetid://2114473"
  317. o25.MeshType = Enum.MeshType.FileMesh
  318. o26 = Instance.new("Part")
  319. o26.Name = "2"
  320. o26.Parent = o1
  321. o26.Position = Vector3.new(8.5, 0.200000018, 0)
  322. o26.Anchored = true
  323. o26.CFrame = CFrame.new(8.5, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  324. o26.CanCollide = false
  325. o26.Size = Vector3.new(0.5, 0.200000003, 0.5)
  326. o26.BottomSurface = Enum.SurfaceType.Smooth
  327. o26.TopSurface = Enum.SurfaceType.Smooth
  328. o27 = Instance.new("SpecialMesh")
  329. o27.Parent = o26
  330. o27.MeshId = "rbxassetid://9856898"
  331. o27.Scale = Vector3.new(1, 0.400000006, 1)
  332. o27.TextureId = "rbxassetid://2114473"
  333. o27.MeshType = Enum.MeshType.FileMesh
  334. o28 = Instance.new("Part")
  335. o28.Name = "29"
  336. o28.Parent = o1
  337. o28.Position = Vector3.new(-5, 0.200000018, 0)
  338. o28.Anchored = true
  339. o28.CFrame = CFrame.new(-5, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  340. o28.CanCollide = false
  341. o28.Size = Vector3.new(0.5, 0.200000003, 0.5)
  342. o28.BottomSurface = Enum.SurfaceType.Smooth
  343. o28.TopSurface = Enum.SurfaceType.Smooth
  344. o29 = Instance.new("SpecialMesh")
  345. o29.Parent = o28
  346. o29.MeshId = "rbxassetid://9856898"
  347. o29.Scale = Vector3.new(1, 0.400000006, 1)
  348. o29.TextureId = "rbxassetid://2114473"
  349. o29.MeshType = Enum.MeshType.FileMesh
  350. o30 = Instance.new("Part")
  351. o30.Name = "30"
  352. o30.Parent = o1
  353. o30.Position = Vector3.new(-5.5, 0.200000018, 0)
  354. o30.Anchored = true
  355. o30.CFrame = CFrame.new(-5.5, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  356. o30.CanCollide = false
  357. o30.Size = Vector3.new(0.5, 0.200000003, 0.5)
  358. o30.BottomSurface = Enum.SurfaceType.Smooth
  359. o30.TopSurface = Enum.SurfaceType.Smooth
  360. o31 = Instance.new("SpecialMesh")
  361. o31.Parent = o30
  362. o31.MeshId = "rbxassetid://9856898"
  363. o31.Scale = Vector3.new(1, 0.400000006, 1)
  364. o31.TextureId = "rbxassetid://2114473"
  365. o31.MeshType = Enum.MeshType.FileMesh
  366. o32 = Instance.new("Part")
  367. o32.Name = "31"
  368. o32.Parent = o1
  369. o32.Position = Vector3.new(-6, 0.200000018, 0)
  370. o32.Anchored = true
  371. o32.CFrame = CFrame.new(-6, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  372. o32.CanCollide = false
  373. o32.Size = Vector3.new(0.5, 0.200000003, 0.5)
  374. o32.BottomSurface = Enum.SurfaceType.Smooth
  375. o32.TopSurface = Enum.SurfaceType.Smooth
  376. o33 = Instance.new("SpecialMesh")
  377. o33.Parent = o32
  378. o33.MeshId = "rbxassetid://9856898"
  379. o33.Scale = Vector3.new(1, 0.400000006, 1)
  380. o33.TextureId = "rbxassetid://2114473"
  381. o33.MeshType = Enum.MeshType.FileMesh
  382. o34 = Instance.new("Part")
  383. o34.Name = "32"
  384. o34.Parent = o1
  385. o34.Position = Vector3.new(-6.5, 0.200000018, 0)
  386. o34.Anchored = true
  387. o34.CFrame = CFrame.new(-6.5, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  388. o34.CanCollide = false
  389. o34.Size = Vector3.new(0.5, 0.200000003, 0.5)
  390. o34.BottomSurface = Enum.SurfaceType.Smooth
  391. o34.TopSurface = Enum.SurfaceType.Smooth
  392. o35 = Instance.new("SpecialMesh")
  393. o35.Parent = o34
  394. o35.MeshId = "rbxassetid://9856898"
  395. o35.Scale = Vector3.new(1, 0.400000006, 1)
  396. o35.TextureId = "rbxassetid://2114473"
  397. o35.MeshType = Enum.MeshType.FileMesh
  398. o36 = Instance.new("Part")
  399. o36.Name = "33"
  400. o36.Parent = o1
  401. o36.Position = Vector3.new(-7, 0.200000018, 0)
  402. o36.Anchored = true
  403. o36.CFrame = CFrame.new(-7, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  404. o36.CanCollide = false
  405. o36.Size = Vector3.new(0.5, 0.200000003, 0.5)
  406. o36.BottomSurface = Enum.SurfaceType.Smooth
  407. o36.TopSurface = Enum.SurfaceType.Smooth
  408. o37 = Instance.new("SpecialMesh")
  409. o37.Parent = o36
  410. o37.MeshId = "rbxassetid://9856898"
  411. o37.Scale = Vector3.new(1, 0.400000006, 1)
  412. o37.TextureId = "rbxassetid://2114473"
  413. o37.MeshType = Enum.MeshType.FileMesh
  414. o38 = Instance.new("Part")
  415. o38.Name = "3"
  416. o38.Parent = o1
  417. o38.Position = Vector3.new(8, 0.200000018, 0)
  418. o38.Anchored = true
  419. o38.CFrame = CFrame.new(8, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  420. o38.CanCollide = false
  421. o38.Size = Vector3.new(0.5, 0.200000003, 0.5)
  422. o38.BottomSurface = Enum.SurfaceType.Smooth
  423. o38.TopSurface = Enum.SurfaceType.Smooth
  424. o39 = Instance.new("SpecialMesh")
  425. o39.Parent = o38
  426. o39.MeshId = "rbxassetid://9856898"
  427. o39.Scale = Vector3.new(1, 0.400000006, 1)
  428. o39.TextureId = "rbxassetid://2114473"
  429. o39.MeshType = Enum.MeshType.FileMesh
  430. o40 = Instance.new("Part")
  431. o40.Name = "14"
  432. o40.Parent = o1
  433. o40.Position = Vector3.new(2.5, 0.200000018, 0)
  434. o40.Anchored = true
  435. o40.CFrame = CFrame.new(2.5, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  436. o40.CanCollide = false
  437. o40.Size = Vector3.new(0.5, 0.200000003, 0.5)
  438. o40.BottomSurface = Enum.SurfaceType.Smooth
  439. o40.TopSurface = Enum.SurfaceType.Smooth
  440. o41 = Instance.new("SpecialMesh")
  441. o41.Parent = o40
  442. o41.MeshId = "rbxassetid://9856898"
  443. o41.Scale = Vector3.new(1, 0.400000006, 1)
  444. o41.TextureId = "rbxassetid://2114473"
  445. o41.MeshType = Enum.MeshType.FileMesh
  446. o42 = Instance.new("Part")
  447. o42.Name = "24"
  448. o42.Parent = o1
  449. o42.Position = Vector3.new(-2.5, 0.200000018, 0)
  450. o42.Anchored = true
  451. o42.CFrame = CFrame.new(-2.5, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  452. o42.CanCollide = false
  453. o42.Size = Vector3.new(0.5, 0.200000003, 0.5)
  454. o42.BottomSurface = Enum.SurfaceType.Smooth
  455. o42.TopSurface = Enum.SurfaceType.Smooth
  456. o43 = Instance.new("SpecialMesh")
  457. o43.Parent = o42
  458. o43.MeshId = "rbxassetid://9856898"
  459. o43.Scale = Vector3.new(1, 0.400000006, 1)
  460. o43.TextureId = "rbxassetid://2114473"
  461. o43.MeshType = Enum.MeshType.FileMesh
  462. o44 = Instance.new("Part")
  463. o44.Name = "4"
  464. o44.Parent = o1
  465. o44.Position = Vector3.new(7.5, 0.200000018, 0)
  466. o44.Anchored = true
  467. o44.CFrame = CFrame.new(7.5, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  468. o44.CanCollide = false
  469. o44.Size = Vector3.new(0.5, 0.200000003, 0.5)
  470. o44.BottomSurface = Enum.SurfaceType.Smooth
  471. o44.TopSurface = Enum.SurfaceType.Smooth
  472. o45 = Instance.new("SpecialMesh")
  473. o45.Parent = o44
  474. o45.MeshId = "rbxassetid://9856898"
  475. o45.Scale = Vector3.new(1, 0.400000006, 1)
  476. o45.TextureId = "rbxassetid://2114473"
  477. o45.MeshType = Enum.MeshType.FileMesh
  478. o46 = Instance.new("Part")
  479. o46.Name = "34"
  480. o46.Parent = o1
  481. o46.Position = Vector3.new(-7.5, 0.200000018, 0)
  482. o46.Anchored = true
  483. o46.CFrame = CFrame.new(-7.5, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  484. o46.CanCollide = false
  485. o46.Size = Vector3.new(0.5, 0.200000003, 0.5)
  486. o46.BottomSurface = Enum.SurfaceType.Smooth
  487. o46.TopSurface = Enum.SurfaceType.Smooth
  488. o47 = Instance.new("SpecialMesh")
  489. o47.Parent = o46
  490. o47.MeshId = "rbxassetid://9856898"
  491. o47.Scale = Vector3.new(1, 0.400000006, 1)
  492. o47.TextureId = "rbxassetid://2114473"
  493. o47.MeshType = Enum.MeshType.FileMesh
  494. o48 = Instance.new("Part")
  495. o48.Name = "15"
  496. o48.Parent = o1
  497. o48.Position = Vector3.new(2, 0.200000018, 0)
  498. o48.Anchored = true
  499. o48.CFrame = CFrame.new(2, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  500. o48.CanCollide = false
  501. o48.Size = Vector3.new(0.5, 0.200000003, 0.5)
  502. o48.BottomSurface = Enum.SurfaceType.Smooth
  503. o48.TopSurface = Enum.SurfaceType.Smooth
  504. o49 = Instance.new("SpecialMesh")
  505. o49.Parent = o48
  506. o49.MeshId = "rbxassetid://9856898"
  507. o49.Scale = Vector3.new(1, 0.400000006, 1)
  508. o49.TextureId = "rbxassetid://2114473"
  509. o49.MeshType = Enum.MeshType.FileMesh
  510. o50 = Instance.new("Part")
  511. o50.Name = "25"
  512. o50.Parent = o1
  513. o50.Position = Vector3.new(-3, 0.200000018, 0)
  514. o50.Anchored = true
  515. o50.CFrame = CFrame.new(-3, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  516. o50.CanCollide = false
  517. o50.Size = Vector3.new(0.5, 0.200000003, 0.5)
  518. o50.BottomSurface = Enum.SurfaceType.Smooth
  519. o50.TopSurface = Enum.SurfaceType.Smooth
  520. o51 = Instance.new("SpecialMesh")
  521. o51.Parent = o50
  522. o51.MeshId = "rbxassetid://9856898"
  523. o51.Scale = Vector3.new(1, 0.400000006, 1)
  524. o51.TextureId = "rbxassetid://2114473"
  525. o51.MeshType = Enum.MeshType.FileMesh
  526. o52 = Instance.new("Part")
  527. o52.Name = "5"
  528. o52.Parent = o1
  529. o52.Position = Vector3.new(7, 0.200000018, 0)
  530. o52.Anchored = true
  531. o52.CFrame = CFrame.new(7, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  532. o52.CanCollide = false
  533. o52.Size = Vector3.new(0.5, 0.200000003, 0.5)
  534. o52.BottomSurface = Enum.SurfaceType.Smooth
  535. o52.TopSurface = Enum.SurfaceType.Smooth
  536. o53 = Instance.new("SpecialMesh")
  537. o53.Parent = o52
  538. o53.MeshId = "rbxassetid://9856898"
  539. o53.Scale = Vector3.new(1, 0.400000006, 1)
  540. o53.TextureId = "rbxassetid://2114473"
  541. o53.MeshType = Enum.MeshType.FileMesh
  542. o54 = Instance.new("Part")
  543. o54.Name = "35"
  544. o54.Parent = o1
  545. o54.Position = Vector3.new(-8, 0.200000018, 0)
  546. o54.Anchored = true
  547. o54.CFrame = CFrame.new(-8, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  548. o54.CanCollide = false
  549. o54.Size = Vector3.new(0.5, 0.200000003, 0.5)
  550. o54.BottomSurface = Enum.SurfaceType.Smooth
  551. o54.TopSurface = Enum.SurfaceType.Smooth
  552. o55 = Instance.new("SpecialMesh")
  553. o55.Parent = o54
  554. o55.MeshId = "rbxassetid://9856898"
  555. o55.Scale = Vector3.new(1, 0.400000006, 1)
  556. o55.TextureId = "rbxassetid://2114473"
  557. o55.MeshType = Enum.MeshType.FileMesh
  558. o56 = Instance.new("Part")
  559. o56.Name = "16"
  560. o56.Parent = o1
  561. o56.Position = Vector3.new(1.5, 0.200000018, 0)
  562. o56.Anchored = true
  563. o56.CFrame = CFrame.new(1.5, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  564. o56.CanCollide = false
  565. o56.Size = Vector3.new(0.5, 0.200000003, 0.5)
  566. o56.BottomSurface = Enum.SurfaceType.Smooth
  567. o56.TopSurface = Enum.SurfaceType.Smooth
  568. o57 = Instance.new("SpecialMesh")
  569. o57.Parent = o56
  570. o57.MeshId = "rbxassetid://9856898"
  571. o57.Scale = Vector3.new(1, 0.400000006, 1)
  572. o57.TextureId = "rbxassetid://2114473"
  573. o57.MeshType = Enum.MeshType.FileMesh
  574. o58 = Instance.new("Part")
  575. o58.Name = "6"
  576. o58.Parent = o1
  577. o58.Position = Vector3.new(6.5, 0.200000018, 0)
  578. o58.Anchored = true
  579. o58.CFrame = CFrame.new(6.5, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  580. o58.CanCollide = false
  581. o58.Size = Vector3.new(0.5, 0.200000003, 0.5)
  582. o58.BottomSurface = Enum.SurfaceType.Smooth
  583. o58.TopSurface = Enum.SurfaceType.Smooth
  584. o59 = Instance.new("SpecialMesh")
  585. o59.Parent = o58
  586. o59.MeshId = "rbxassetid://9856898"
  587. o59.Scale = Vector3.new(1, 0.400000006, 1)
  588. o59.TextureId = "rbxassetid://2114473"
  589. o59.MeshType = Enum.MeshType.FileMesh
  590. o60 = Instance.new("Part")
  591. o60.Name = "26"
  592. o60.Parent = o1
  593. o60.Position = Vector3.new(-3.5, 0.200000018, 0)
  594. o60.Anchored = true
  595. o60.CFrame = CFrame.new(-3.5, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  596. o60.CanCollide = false
  597. o60.Size = Vector3.new(0.5, 0.200000003, 0.5)
  598. o60.BottomSurface = Enum.SurfaceType.Smooth
  599. o60.TopSurface = Enum.SurfaceType.Smooth
  600. o61 = Instance.new("SpecialMesh")
  601. o61.Parent = o60
  602. o61.MeshId = "rbxassetid://9856898"
  603. o61.Scale = Vector3.new(1, 0.400000006, 1)
  604. o61.TextureId = "rbxassetid://2114473"
  605. o61.MeshType = Enum.MeshType.FileMesh
  606. o62 = Instance.new("Part")
  607. o62.Name = "36"
  608. o62.Parent = o1
  609. o62.Position = Vector3.new(-8.5, 0.200000018, 0)
  610. o62.Anchored = true
  611. o62.CFrame = CFrame.new(-8.5, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  612. o62.CanCollide = false
  613. o62.Size = Vector3.new(0.5, 0.200000003, 0.5)
  614. o62.BottomSurface = Enum.SurfaceType.Smooth
  615. o62.TopSurface = Enum.SurfaceType.Smooth
  616. o63 = Instance.new("SpecialMesh")
  617. o63.Parent = o62
  618. o63.MeshId = "rbxassetid://9856898"
  619. o63.Scale = Vector3.new(1, 0.400000006, 1)
  620. o63.TextureId = "rbxassetid://2114473"
  621. o63.MeshType = Enum.MeshType.FileMesh
  622. o64 = Instance.new("Part")
  623. o64.Name = "17"
  624. o64.Parent = o1
  625. o64.Position = Vector3.new(1, 0.200000018, 0)
  626. o64.Anchored = true
  627. o64.CFrame = CFrame.new(1, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  628. o64.CanCollide = false
  629. o64.Size = Vector3.new(0.5, 0.200000003, 0.5)
  630. o64.BottomSurface = Enum.SurfaceType.Smooth
  631. o64.TopSurface = Enum.SurfaceType.Smooth
  632. o65 = Instance.new("SpecialMesh")
  633. o65.Parent = o64
  634. o65.MeshId = "rbxassetid://9856898"
  635. o65.Scale = Vector3.new(1, 0.400000006, 1)
  636. o65.TextureId = "rbxassetid://2114473"
  637. o65.MeshType = Enum.MeshType.FileMesh
  638. o66 = Instance.new("Part")
  639. o66.Name = "27"
  640. o66.Parent = o1
  641. o66.Position = Vector3.new(-4, 0.200000018, 0)
  642. o66.Anchored = true
  643. o66.CFrame = CFrame.new(-4, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  644. o66.CanCollide = false
  645. o66.Size = Vector3.new(0.5, 0.200000003, 0.5)
  646. o66.BottomSurface = Enum.SurfaceType.Smooth
  647. o66.TopSurface = Enum.SurfaceType.Smooth
  648. o67 = Instance.new("SpecialMesh")
  649. o67.Parent = o66
  650. o67.MeshId = "rbxassetid://9856898"
  651. o67.Scale = Vector3.new(1, 0.400000006, 1)
  652. o67.TextureId = "rbxassetid://2114473"
  653. o67.MeshType = Enum.MeshType.FileMesh
  654. o68 = Instance.new("Part")
  655. o68.Name = "7"
  656. o68.Parent = o1
  657. o68.Position = Vector3.new(6, 0.200000018, 0)
  658. o68.Anchored = true
  659. o68.CFrame = CFrame.new(6, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  660. o68.CanCollide = false
  661. o68.Size = Vector3.new(0.5, 0.200000003, 0.5)
  662. o68.BottomSurface = Enum.SurfaceType.Smooth
  663. o68.TopSurface = Enum.SurfaceType.Smooth
  664. o69 = Instance.new("SpecialMesh")
  665. o69.Parent = o68
  666. o69.MeshId = "rbxassetid://9856898"
  667. o69.Scale = Vector3.new(1, 0.400000006, 1)
  668. o69.TextureId = "rbxassetid://2114473"
  669. o69.MeshType = Enum.MeshType.FileMesh
  670. o70 = Instance.new("Part")
  671. o70.Name = "37"
  672. o70.Parent = o1
  673. o70.Position = Vector3.new(-9, 0.200000018, 0)
  674. o70.Anchored = true
  675. o70.CFrame = CFrame.new(-9, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  676. o70.CanCollide = false
  677. o70.Size = Vector3.new(0.5, 0.200000003, 0.5)
  678. o70.BottomSurface = Enum.SurfaceType.Smooth
  679. o70.TopSurface = Enum.SurfaceType.Smooth
  680. o71 = Instance.new("SpecialMesh")
  681. o71.Parent = o70
  682. o71.MeshId = "rbxassetid://9856898"
  683. o71.Scale = Vector3.new(1, 0.400000006, 1)
  684. o71.TextureId = "rbxassetid://2114473"
  685. o71.MeshType = Enum.MeshType.FileMesh
  686. o72 = Instance.new("Part")
  687. o72.Name = "8"
  688. o72.Parent = o1
  689. o72.Position = Vector3.new(5.5, 0.200000018, 0)
  690. o72.Anchored = true
  691. o72.CFrame = CFrame.new(5.5, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  692. o72.CanCollide = false
  693. o72.Size = Vector3.new(0.5, 0.200000003, 0.5)
  694. o72.BottomSurface = Enum.SurfaceType.Smooth
  695. o72.TopSurface = Enum.SurfaceType.Smooth
  696. o73 = Instance.new("SpecialMesh")
  697. o73.Parent = o72
  698. o73.MeshId = "rbxassetid://9856898"
  699. o73.Scale = Vector3.new(1, 0.400000006, 1)
  700. o73.TextureId = "rbxassetid://2114473"
  701. o73.MeshType = Enum.MeshType.FileMesh
  702. o74 = Instance.new("Part")
  703. o74.Name = "18"
  704. o74.Parent = o1
  705. o74.Position = Vector3.new(0.5, 0.200000018, 0)
  706. o74.Anchored = true
  707. o74.CFrame = CFrame.new(0.5, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  708. o74.CanCollide = false
  709. o74.Size = Vector3.new(0.5, 0.200000003, 0.5)
  710. o74.BottomSurface = Enum.SurfaceType.Smooth
  711. o74.TopSurface = Enum.SurfaceType.Smooth
  712. o75 = Instance.new("SpecialMesh")
  713. o75.Parent = o74
  714. o75.MeshId = "rbxassetid://9856898"
  715. o75.Scale = Vector3.new(1, 0.400000006, 1)
  716. o75.TextureId = "rbxassetid://2114473"
  717. o75.MeshType = Enum.MeshType.FileMesh
  718. o76 = Instance.new("Part")
  719. o76.Name = "28"
  720. o76.Parent = o1
  721. o76.Position = Vector3.new(-4.5, 0.200000018, 0)
  722. o76.Anchored = true
  723. o76.CFrame = CFrame.new(-4.5, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  724. o76.CanCollide = false
  725. o76.Size = Vector3.new(0.5, 0.200000003, 0.5)
  726. o76.BottomSurface = Enum.SurfaceType.Smooth
  727. o76.TopSurface = Enum.SurfaceType.Smooth
  728. o77 = Instance.new("SpecialMesh")
  729. o77.Parent = o76
  730. o77.MeshId = "rbxassetid://9856898"
  731. o77.Scale = Vector3.new(1, 0.400000006, 1)
  732. o77.TextureId = "rbxassetid://2114473"
  733. o77.MeshType = Enum.MeshType.FileMesh
  734. o78 = Instance.new("Part")
  735. o78.Name = "38"
  736. o78.Parent = o1
  737. o78.Position = Vector3.new(-9.5, 0.200000018, 0)
  738. o78.Anchored = true
  739. o78.CFrame = CFrame.new(-9.5, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  740. o78.CanCollide = false
  741. o78.Size = Vector3.new(0.5, 0.200000003, 0.5)
  742. o78.BottomSurface = Enum.SurfaceType.Smooth
  743. o78.TopSurface = Enum.SurfaceType.Smooth
  744. o79 = Instance.new("SpecialMesh")
  745. o79.Parent = o78
  746. o79.MeshId = "rbxassetid://9856898"
  747. o79.Scale = Vector3.new(1, 0.400000006, 1)
  748. o79.TextureId = "rbxassetid://2114473"
  749. o79.MeshType = Enum.MeshType.FileMesh
  750. o80 = Instance.new("SpecialMesh")
  751. o80.Parent = o1
  752. o80.MeshId = "rbxassetid://9856898"
  753. o80.Scale = Vector3.new(40, 0.400000006, 2)
  754. o80.TextureId = "rbxassetid://2114473"
  755. o80.VertexColor = Vector3.new(0, 0, 0)
  756. o80.MeshType = Enum.MeshType.FileMesh
  757. mas.Parent = workspace
  758. mas:MakeJoints()
  759. local mas1 = mas:GetChildren()
  760. for i=1,#mas1 do
  761. mas1[i].Parent = owner
  762. ypcall(function() mas1[i]:MakeJoints() end)
  763. end
  764. mas:Destroy()
  765. for i=1,#cors do
  766. coroutine.resume(cors[i])
  767. end
  768.  
  769. local Height=20 -- Max height of the bars
  770. local plr=owner
  771.  
  772. o81 = Instance.new("Sound")
  773. o81.Parent = plr.Character.Torso
  774. o81.SoundId = "rbxassetid://508162596"
  775. o81.Volume = 3
  776. o81.Looped = true
  777.  
  778.  
  779. --// Core Gui //--
  780.  
  781. -- Objects
  782.  
  783. local MusicGui = Instance.new("ScreenGui")
  784. local Core = Instance.new("Frame")
  785. local Title = Instance.new("TextLabel")
  786. local Credit = Instance.new("TextLabel")
  787. local SongIDTitle = Instance.new("TextLabel")
  788. local SongIDBox = Instance.new("TextBox")
  789. local PlaySong = Instance.new("TextButton")
  790. local SongControls = Instance.new("Frame")
  791. local Pause = Instance.new("ImageButton")
  792. local Play = Instance.new("ImageButton")
  793. local Download = Instance.new("ImageButton")
  794. local SongControlsTitle = Instance.new("TextLabel")
  795. local EffectsTitle = Instance.new("TextLabel")
  796. local OpenEffects = Instance.new("TextButton")
  797.  
  798. -- Properties
  799.  
  800. MusicGui.Name = "Music Gui"
  801. MusicGui.Parent = owner
  802. Core.Name = "Core"
  803. Core.Parent = MusicGui
  804. Core.Active = true
  805. Core.BackgroundColor3 = Color3.new(0.227451, 0.835294, 1)
  806. Core.Draggable = true
  807. Core.Position = UDim2.new(0, 200, 0, 150)
  808. Core.Size = UDim2.new(0, 400, 0, 300)
  809.  
  810. Title.Name = "Title"
  811. Title.Parent = Core
  812. Title.BackgroundColor3 = Color3.new(1, 1, 1)
  813. Title.BackgroundTransparency = 1
  814. Title.BorderColor3 = Color3.new(1, 1, 1)
  815. Title.Position = UDim2.new(0, 100, 0, 5)
  816. Title.Size = UDim2.new(0, 200, 0, 20)
  817. Title.Font = Enum.Font.SourceSansBold
  818. Title.FontSize = Enum.FontSize.Size28
  819. Title.Text = "Music Visualiser Revamped"
  820. Title.TextSize = 28
  821. Title.TextStrokeColor3 = Color3.new(0.87451, 0.87451, 0.87451)
  822. Title.TextStrokeTransparency = 0.60000002384186
  823.  
  824. Credit.Name = "Credit"
  825. Credit.Parent = Core
  826. Credit.BackgroundColor3 = Color3.new(1, 1, 1)
  827. Credit.BackgroundTransparency = 1
  828. Credit.BorderColor3 = Color3.new(1, 1, 1)
  829. Credit.Position = UDim2.new(0, 225, 0, 280)
  830. Credit.Size = UDim2.new(0, 200, 0, 20)
  831. Credit.Font = Enum.Font.SourceSansBold
  832. Credit.FontSize = Enum.FontSize.Size14
  833. Credit.Text = "Revamped by Blacklotus"
  834. Credit.TextSize = 14
  835. Credit.TextStrokeColor3 = Color3.new(0.87451, 0.87451, 0.87451)
  836. Credit.TextStrokeTransparency = 0.60000002384186
  837. SongIDTitle.Name = "SongIDTitle"
  838. SongIDTitle.Parent = Core
  839. SongIDTitle.BackgroundColor3 = Color3.new(1, 1, 1)
  840. SongIDTitle.BackgroundTransparency = 1
  841. SongIDTitle.BorderColor3 = Color3.new(1, 1, 1)
  842. SongIDTitle.Position = UDim2.new(0, 50, 0, 50)
  843. SongIDTitle.Size = UDim2.new(0, 100, 0, 20)
  844. SongIDTitle.Font = Enum.Font.SourceSansBold
  845. SongIDTitle.FontSize = Enum.FontSize.Size28
  846. SongIDTitle.Text = "Song ID:"
  847. SongIDTitle.TextSize = 28
  848. SongIDTitle.TextStrokeColor3 = Color3.new(0.87451, 0.87451, 0.87451)
  849. SongIDTitle.TextStrokeTransparency = 0.60000002384186
  850.  
  851. SongIDBox.Name = "SongIDBox"
  852. SongIDBox.Parent = Core
  853. SongIDBox.BackgroundColor3 = Color3.new(1, 1, 1)
  854. SongIDBox.Position = UDim2.new(0, 150, 0, 50)
  855. SongIDBox.Size = UDim2.new(0, 150, 0, 30)
  856. SongIDBox.ZIndex = 2
  857. SongIDBox.Font = Enum.Font.SourceSansBold
  858. SongIDBox.FontSize = Enum.FontSize.Size18
  859. SongIDBox.Text = "Enter Song ID here"
  860. SongIDBox.TextColor3 = Color3.new(0, 0, 0)
  861. SongIDBox.TextSize = 18
  862. SongIDBox.TextWrapped = true
  863.  
  864. PlaySong.Name = "PlaySong"
  865. PlaySong.Parent = Core
  866. PlaySong.BackgroundColor3 = Color3.new(0.12549, 1, 0.592157)
  867. PlaySong.Position = UDim2.new(0, 305, 0, 50)
  868. PlaySong.Size = UDim2.new(0, 50, 0, 30)
  869. PlaySong.Font = Enum.Font.SourceSansBold
  870. PlaySong.FontSize = Enum.FontSize.Size14
  871. PlaySong.Text = "Play"
  872. PlaySong.TextColor3 = Color3.new(0, 0, 0)
  873. PlaySong.TextSize = 14
  874. PlaySong.TextStrokeColor3 = Color3.new(0.886275, 0.886275, 0.886275)
  875. PlaySong.TextStrokeTransparency = 0.64999997615814
  876. PlaySong.TextWrapped = true
  877.  
  878. SongControls.Name = "SongControls"
  879. SongControls.Parent = Core
  880. SongControls.BackgroundColor3 = Color3.new(0.168627, 0.631373, 0.745098)
  881. SongControls.BorderSizePixel = 0
  882. SongControls.Position = UDim2.new(0, 40, 0, 255)
  883. SongControls.Size = UDim2.new(0, 125, 0, 40)
  884.  
  885. Pause.Name = "Pause"
  886. Pause.Parent = SongControls
  887. Pause.BackgroundColor3 = Color3.new(1, 1, 1)
  888. Pause.BackgroundTransparency = 1
  889. Pause.Position = UDim2.new(0, 5, 0, 5)
  890. Pause.Size = UDim2.new(0, 30, 0, 30)
  891. Pause.Image = "rbxassetid://12255391"
  892.  
  893. Play.Name = "Play"
  894. Play.Parent = SongControls
  895. Play.BackgroundColor3 = Color3.new(1, 1, 1)
  896. Play.BackgroundTransparency = 1
  897. Play.Position = UDim2.new(0, 45, 0, 5)
  898. Play.Size = UDim2.new(0, 30, 0, 30)
  899. Play.Image = "rbxassetid://12255379"
  900.  
  901. Download.Name = "Download"
  902. Download.Parent = SongControls
  903. Download.BackgroundColor3 = Color3.new(1, 1, 1)
  904. Download.BackgroundTransparency = 1
  905. Download.Position = UDim2.new(0, 85, 0, 5)
  906. Download.Size = UDim2.new(0, 30, 0, 30)
  907. Download.Image = "rbxassetid://12295359"
  908.  
  909. SongControlsTitle.Name = "SongControlsTitle"
  910. SongControlsTitle.Parent = Core
  911. SongControlsTitle.BackgroundColor3 = Color3.new(1, 1, 1)
  912. SongControlsTitle.BackgroundTransparency = 1
  913. SongControlsTitle.BorderColor3 = Color3.new(1, 1, 1)
  914. SongControlsTitle.Position = UDim2.new(0, 5, 0, 230)
  915. SongControlsTitle.Size = UDim2.new(0, 200, 0, 20)
  916. SongControlsTitle.Font = Enum.Font.SourceSansBold
  917. SongControlsTitle.FontSize = Enum.FontSize.Size18
  918. SongControlsTitle.Text = "Song Controls"
  919. SongControlsTitle.TextSize = 18
  920. SongControlsTitle.TextStrokeColor3 = Color3.new(0.87451, 0.87451, 0.87451)
  921. SongControlsTitle.TextStrokeTransparency = 0.60000002384186
  922.  
  923. EffectsTitle.Name = "EffectsTitle"
  924. EffectsTitle.Parent = Core
  925. EffectsTitle.BackgroundColor3 = Color3.new(1, 1, 1)
  926. EffectsTitle.BackgroundTransparency = 1
  927. EffectsTitle.BorderColor3 = Color3.new(1, 1, 1)
  928. EffectsTitle.Position = UDim2.new(0, 50, 0, 150)
  929. EffectsTitle.Size = UDim2.new(0, 100, 0, 20)
  930. EffectsTitle.Font = Enum.Font.SourceSansBold
  931. EffectsTitle.FontSize = Enum.FontSize.Size28
  932. EffectsTitle.Text = "Effects:"
  933. EffectsTitle.TextSize = 28
  934. EffectsTitle.TextStrokeColor3 = Color3.new(0.87451, 0.87451, 0.87451)
  935. EffectsTitle.TextStrokeTransparency = 0.60000002384186
  936.  
  937. OpenEffects.Name = "OpenEffects"
  938. OpenEffects.Parent = Core
  939. OpenEffects.BackgroundColor3 = Color3.new(1, 1, 1)
  940. OpenEffects.Position = UDim2.new(0, 150, 0, 150)
  941. OpenEffects.Size = UDim2.new(0, 150, 0, 30)
  942. OpenEffects.Font = Enum.Font.SourceSansBold
  943. OpenEffects.FontSize = Enum.FontSize.Size14
  944. OpenEffects.Text = "Click to open effects"
  945. OpenEffects.TextColor3 = Color3.new(0, 0, 0)
  946. OpenEffects.TextSize = 14
  947. OpenEffects.TextStrokeColor3 = Color3.new(0.886275, 0.886275, 0.886275)
  948. OpenEffects.TextStrokeTransparency = 0.64999997615814
  949. OpenEffects.TextWrapped = true
  950. ---------------------------------------------------------------------------------------- CORE GUI end
  951. --//EffectsGui Start // --
  952. -- Objects
  953.  
  954. local EffectsGui = Instance.new("Frame")
  955. local Title2 = Instance.new("TextLabel")
  956. local Credit2 = Instance.new("TextLabel")
  957. local SongEffects = Instance.new("ScrollingFrame")
  958. local ChorusSoundEffect = Instance.new("TextButton")
  959. local CompressorSoundEffect = Instance.new("TextButton")
  960. local DistortionSoundEffect = Instance.new("TextButton")
  961. local EchoSoundEffect = Instance.new("TextButton")
  962. local EqualizerSoundEffect = Instance.new("TextButton")
  963. local FlangeSoundEffect = Instance.new("TextButton")
  964. local PitchShiftSoundEffect = Instance.new("TextButton")
  965. local TremoloSoundEffect = Instance.new("TextButton")
  966. local ClearEffects = Instance.new("TextButton")
  967. local SongEffectTitle = Instance.new("TextLabel")
  968. local PitchValueTitle = Instance.new("TextLabel")
  969. local VolumeTitle = Instance.new("TextLabel")
  970. local ApplySettings = Instance.new("TextButton")
  971. local PitchValue = Instance.new("TextBox")
  972. local VolumeValue = Instance.new("TextBox")
  973. local ExitEffects = Instance.new("TextButton")
  974.  
  975. -- Properties
  976.  
  977. EffectsGui.Name = "EffectsGui"
  978. EffectsGui.Parent = MusicGui
  979. EffectsGui.Visible = false
  980. EffectsGui.Active = true
  981. EffectsGui.BackgroundColor3 = Color3.new(0.227451, 0.835294, 1)
  982. EffectsGui.Draggable = true
  983. EffectsGui.Position = UDim2.new(0, 392, 0, 260)
  984. EffectsGui.Size = UDim2.new(0, 400, 0, 300)
  985.  
  986. Title2.Name = "Title2"
  987. Title2.Parent = EffectsGui
  988. Title2.BackgroundColor3 = Color3.new(1, 1, 1)
  989. Title2.BackgroundTransparency = 1
  990. Title2.BorderColor3 = Color3.new(1, 1, 1)
  991. Title2.Position = UDim2.new(0, 100, 0, 5)
  992. Title2.Size = UDim2.new(0, 200, 0, 20)
  993. Title2.Font = Enum.Font.SourceSansBold
  994. Title2.FontSize = Enum.FontSize.Size32
  995. Title2.Text = "Effects GUI"
  996. Title2.TextSize = 32
  997. Title2.TextStrokeColor3 = Color3.new(0.87451, 0.87451, 0.87451)
  998. Title2.TextStrokeTransparency = 0.60000002384186
  999.  
  1000. Credit2.Name = "Credit2"
  1001. Credit2.Parent = EffectsGui
  1002. Credit2.BackgroundColor3 = Color3.new(1, 1, 1)
  1003. Credit2.BackgroundTransparency = 1
  1004. Credit2.BorderColor3 = Color3.new(1, 1, 1)
  1005. Credit2.Position = UDim2.new(0, 225, 0, 280)
  1006. Credit2.Size = UDim2.new(0, 200, 0, 20)
  1007. Credit2.Font = Enum.Font.SourceSansBold
  1008. Credit2.FontSize = Enum.FontSize.Size14
  1009. Credit2.Text = "Revamped by Blacklotus"
  1010. Credit2.TextSize = 14
  1011. Credit2.TextStrokeColor3 = Color3.new(0.87451, 0.87451, 0.87451)
  1012. Credit2.TextStrokeTransparency = 0.60000002384186
  1013.  
  1014. SongEffects.Name = "SongEffects"
  1015. SongEffects.Parent = EffectsGui
  1016. SongEffects.BackgroundColor3 = Color3.new(0.286275, 0.92549, 0.639216)
  1017. SongEffects.Position = UDim2.new(0, 30, 0, 75)
  1018. SongEffects.Selectable = false
  1019. SongEffects.Size = UDim2.new(0, 140, 0, 175)
  1020.  
  1021. ChorusSoundEffect.Name = "ChorusSoundEffect"
  1022. ChorusSoundEffect.Parent = SongEffects
  1023. ChorusSoundEffect.BackgroundColor3 = Color3.new(0.690196, 1, 0.831373)
  1024. ChorusSoundEffect.BorderSizePixel = 0
  1025. ChorusSoundEffect.Size = UDim2.new(0, 127, 0, 26)
  1026. ChorusSoundEffect.Font = Enum.Font.SourceSansBold
  1027. ChorusSoundEffect.FontSize = Enum.FontSize.Size18
  1028. ChorusSoundEffect.Text = "Chorus"
  1029. ChorusSoundEffect.TextSize = 18
  1030.  
  1031. CompressorSoundEffect.Name = "CompressorSoundEffect"
  1032. CompressorSoundEffect.Parent = SongEffects
  1033. CompressorSoundEffect.BackgroundColor3 = Color3.new(0.690196, 1, 0.831373)
  1034. CompressorSoundEffect.BorderSizePixel = 0
  1035. CompressorSoundEffect.Position = UDim2.new(0, 0, 0, 28)
  1036. CompressorSoundEffect.Size = UDim2.new(0, 127, 0, 26)
  1037. CompressorSoundEffect.Font = Enum.Font.SourceSansBold
  1038. CompressorSoundEffect.FontSize = Enum.FontSize.Size18
  1039. CompressorSoundEffect.Text = "Compressor"
  1040. CompressorSoundEffect.TextSize = 18
  1041.  
  1042. DistortionSoundEffect.Name = "DistortionSoundEffect"
  1043. DistortionSoundEffect.Parent = SongEffects
  1044. DistortionSoundEffect.BackgroundColor3 = Color3.new(0.690196, 1, 0.831373)
  1045. DistortionSoundEffect.BorderSizePixel = 0
  1046. DistortionSoundEffect.Position = UDim2.new(0, 0, 0, 56)
  1047. DistortionSoundEffect.Size = UDim2.new(0, 127, 0, 26)
  1048. DistortionSoundEffect.Font = Enum.Font.SourceSansBold
  1049. DistortionSoundEffect.FontSize = Enum.FontSize.Size18
  1050. DistortionSoundEffect.Text = "Distortion "
  1051. DistortionSoundEffect.TextSize = 18
  1052.  
  1053. EchoSoundEffect.Name = "EchoSoundEffect"
  1054. EchoSoundEffect.Parent = SongEffects
  1055. EchoSoundEffect.BackgroundColor3 = Color3.new(0.690196, 1, 0.831373)
  1056. EchoSoundEffect.BorderSizePixel = 0
  1057. EchoSoundEffect.Position = UDim2.new(0, 0, 0, 84)
  1058. EchoSoundEffect.Size = UDim2.new(0, 127, 0, 26)
  1059. EchoSoundEffect.Font = Enum.Font.SourceSansBold
  1060. EchoSoundEffect.FontSize = Enum.FontSize.Size18
  1061. EchoSoundEffect.Text = "Echo"
  1062. EchoSoundEffect.TextSize = 18
  1063.  
  1064. EqualizerSoundEffect.Name = "EqualizerSoundEffect"
  1065. EqualizerSoundEffect.Parent = SongEffects
  1066. EqualizerSoundEffect.BackgroundColor3 = Color3.new(0.690196, 1, 0.831373)
  1067. EqualizerSoundEffect.BorderSizePixel = 0
  1068. EqualizerSoundEffect.Position = UDim2.new(0, 0, 0, 112)
  1069. EqualizerSoundEffect.Size = UDim2.new(0, 127, 0, 26)
  1070. EqualizerSoundEffect.Font = Enum.Font.SourceSansBold
  1071. EqualizerSoundEffect.FontSize = Enum.FontSize.Size18
  1072. EqualizerSoundEffect.Text = "Equalizer"
  1073. EqualizerSoundEffect.TextSize = 18
  1074.  
  1075. FlangeSoundEffect.Name = "FlangeSoundEffect"
  1076. FlangeSoundEffect.Parent = SongEffects
  1077. FlangeSoundEffect.BackgroundColor3 = Color3.new(0.690196, 1, 0.831373)
  1078. FlangeSoundEffect.BorderSizePixel = 0
  1079. FlangeSoundEffect.Position = UDim2.new(0, 0, 0, 140)
  1080. FlangeSoundEffect.Size = UDim2.new(0, 127, 0, 26)
  1081. FlangeSoundEffect.Font = Enum.Font.SourceSansBold
  1082. FlangeSoundEffect.FontSize = Enum.FontSize.Size18
  1083. FlangeSoundEffect.Text = "Flange"
  1084. FlangeSoundEffect.TextSize = 18
  1085.  
  1086. PitchShiftSoundEffect.Name = "PitchShiftSoundEffect"
  1087. PitchShiftSoundEffect.Parent = SongEffects
  1088. PitchShiftSoundEffect.BackgroundColor3 = Color3.new(0.690196, 1, 0.831373)
  1089. PitchShiftSoundEffect.BorderSizePixel = 0
  1090. PitchShiftSoundEffect.Position = UDim2.new(0, 0, 0, 168)
  1091. PitchShiftSoundEffect.Size = UDim2.new(0, 127, 0, 26)
  1092. PitchShiftSoundEffect.Font = Enum.Font.SourceSansBold
  1093. PitchShiftSoundEffect.FontSize = Enum.FontSize.Size18
  1094. PitchShiftSoundEffect.Text = "PitchShift"
  1095. PitchShiftSoundEffect.TextSize = 18
  1096.  
  1097. TremoloSoundEffect.Name = "TremoloSoundEffect"
  1098. TremoloSoundEffect.Parent = SongEffects
  1099. TremoloSoundEffect.BackgroundColor3 = Color3.new(0.690196, 1, 0.831373)
  1100. TremoloSoundEffect.BorderSizePixel = 0
  1101. TremoloSoundEffect.Position = UDim2.new(0, 0, 0, 196)
  1102. TremoloSoundEffect.Size = UDim2.new(0, 127, 0, 26)
  1103. TremoloSoundEffect.Font = Enum.Font.SourceSansBold
  1104. TremoloSoundEffect.FontSize = Enum.FontSize.Size18
  1105. TremoloSoundEffect.Text = "Tremolo"
  1106. TremoloSoundEffect.TextSize = 18
  1107.  
  1108. ClearEffects.Name = "ClearEffects"
  1109. ClearEffects.Parent = SongEffects
  1110. ClearEffects.BackgroundColor3 = Color3.new(1, 0.337255, 0.00392157)
  1111. ClearEffects.BorderSizePixel = 0
  1112. ClearEffects.Position = UDim2.new(0, 0, 0, 196)
  1113. ClearEffects.Size = UDim2.new(0, 127, 0, 26)
  1114. ClearEffects.Font = Enum.Font.SourceSansBold
  1115. ClearEffects.FontSize = Enum.FontSize.Size18
  1116. ClearEffects.Text = "ClearEffects"
  1117. ClearEffects.TextSize = 18
  1118.  
  1119. SongEffectTitle.Name = "SongEffectTitle"
  1120. SongEffectTitle.Parent = EffectsGui
  1121. SongEffectTitle.BackgroundColor3 = Color3.new(1, 1, 1)
  1122. SongEffectTitle.BackgroundTransparency = 1
  1123. SongEffectTitle.BorderColor3 = Color3.new(1, 1, 1)
  1124. SongEffectTitle.Position = UDim2.new(0, 40, 0, 45)
  1125. SongEffectTitle.Size = UDim2.new(0, 125, 0, 20)
  1126. SongEffectTitle.Font = Enum.Font.SourceSansBold
  1127. SongEffectTitle.FontSize = Enum.FontSize.Size24
  1128. SongEffectTitle.Text = "Song Effects:"
  1129. SongEffectTitle.TextSize = 24
  1130. SongEffectTitle.TextStrokeColor3 = Color3.new(0.87451, 0.87451, 0.87451)
  1131. SongEffectTitle.TextStrokeTransparency = 0.60000002384186
  1132.  
  1133. PitchValueTitle.Name = "PitchValueTitle"
  1134. PitchValueTitle.Parent = EffectsGui
  1135. PitchValueTitle.BackgroundColor3 = Color3.new(1, 1, 1)
  1136. PitchValueTitle.BackgroundTransparency = 1
  1137. PitchValueTitle.BorderColor3 = Color3.new(1, 1, 1)
  1138. PitchValueTitle.Position = UDim2.new(0, 185, 0, 75)
  1139. PitchValueTitle.Size = UDim2.new(0, 125, 0, 20)
  1140. PitchValueTitle.Font = Enum.Font.SourceSansBold
  1141. PitchValueTitle.FontSize = Enum.FontSize.Size18
  1142. PitchValueTitle.Text = "Song Pitch:"
  1143. PitchValueTitle.TextSize = 18
  1144. PitchValueTitle.TextStrokeColor3 = Color3.new(0.87451, 0.87451, 0.87451)
  1145. PitchValueTitle.TextStrokeTransparency = 0.60000002384186
  1146.  
  1147. VolumeTitle.Name = "VolumeTitle"
  1148. VolumeTitle.Parent = EffectsGui
  1149. VolumeTitle.BackgroundColor3 = Color3.new(1, 1, 1)
  1150. VolumeTitle.BackgroundTransparency = 1
  1151. VolumeTitle.BorderColor3 = Color3.new(1, 1, 1)
  1152. VolumeTitle.Position = UDim2.new(0, 185, 0, 125)
  1153. VolumeTitle.Size = UDim2.new(0, 125, 0, 20)
  1154. VolumeTitle.Font = Enum.Font.SourceSansBold
  1155. VolumeTitle.FontSize = Enum.FontSize.Size18
  1156. VolumeTitle.Text = "Song Volume:"
  1157. VolumeTitle.TextSize = 18
  1158. VolumeTitle.TextStrokeColor3 = Color3.new(0.87451, 0.87451, 0.87451)
  1159. VolumeTitle.TextStrokeTransparency = 0.60000002384186
  1160.  
  1161. ApplySettings.Name = "ApplySettings"
  1162. ApplySettings.Parent = EffectsGui
  1163. ApplySettings.BackgroundColor3 = Color3.new(0.0823529, 1, 0.462745)
  1164. ApplySettings.BorderColor3 = Color3.new(0, 0.533333, 0.0784314)
  1165. ApplySettings.Position = UDim2.new(0, 215, 0, 225)
  1166. ApplySettings.Size = UDim2.new(0, 125, 0, 30)
  1167. ApplySettings.Font = Enum.Font.SourceSansBold
  1168. ApplySettings.FontSize = Enum.FontSize.Size18
  1169. ApplySettings.Text = "Apply Settings"
  1170. ApplySettings.TextSize = 18
  1171.  
  1172. PitchValue.Name = "PitchValue"
  1173. PitchValue.Parent = EffectsGui
  1174. PitchValue.BackgroundColor3 = Color3.new(1, 1, 1)
  1175. PitchValue.Position = UDim2.new(0, 310, 0, 75)
  1176. PitchValue.Size = UDim2.new(0, 75, 0, 25)
  1177. PitchValue.Font = Enum.Font.SourceSansBold
  1178. PitchValue.FontSize = Enum.FontSize.Size18
  1179. PitchValue.Text = "1"
  1180. PitchValue.TextSize = 18
  1181.  
  1182. VolumeValue.Name = "VolumeValue"
  1183. VolumeValue.Parent = EffectsGui
  1184. VolumeValue.BackgroundColor3 = Color3.new(1, 1, 1)
  1185. VolumeValue.Position = UDim2.new(0, 310, 0, 125)
  1186. VolumeValue.Size = UDim2.new(0, 75, 0, 25)
  1187. VolumeValue.Font = Enum.Font.SourceSansBold
  1188. VolumeValue.FontSize = Enum.FontSize.Size18
  1189. VolumeValue.Text = "1"
  1190. VolumeValue.TextSize = 18
  1191.  
  1192. ExitEffects.Name = "ExitEffects"
  1193. ExitEffects.Parent = EffectsGui
  1194. ExitEffects.BackgroundColor3 = Color3.new(1, 0.219608, 0.0627451)
  1195. ExitEffects.BorderColor3 = Color3.new(0, 0.533333, 0.0784314)
  1196. ExitEffects.BorderSizePixel = 0
  1197. ExitEffects.Position = UDim2.new(0, 373, 0, 2)
  1198. ExitEffects.Size = UDim2.new(0, 25, 0, 25)
  1199. ExitEffects.Font = Enum.Font.SourceSansBold
  1200. ExitEffects.FontSize = Enum.FontSize.Size18
  1201. ExitEffects.Text = "X"
  1202. ExitEffects.TextColor3 = Color3.new(1, 1, 1)
  1203. ExitEffects.TextSize = 18
  1204.  
  1205.  
  1206.  
  1207.  
  1208.  
  1209. local Soundbar=game.Players.LocalPlayer.Character.Soundbar
  1210. local Sound=plr.Character.Torso.Sound
  1211. local CurrentSong = nil
  1212. local Bars={} for i,v in next,Soundbar:children() do
  1213. if v:IsA'BasePart' then
  1214. table.insert(Bars,v)
  1215. end
  1216. end Height=Height*2
  1217. local nBars,Tweens=#Bars-1,{}
  1218.  
  1219. -- connecting ID to bar--
  1220.  
  1221. idinput = function()
  1222. local midcurrent = SongIDBox.Text
  1223. Sound:Stop()
  1224. Sound.SoundId='rbxassetid://'..midcurrent..''
  1225. CurrentSong = midcurrent
  1226. Sound:Play()
  1227. end
  1228.  
  1229. downloadsong = function()
  1230. local SongID = Sound.SoundId
  1231. game:GetService("MarketplaceService"):PromptPurchase(game.Players.LocalPlayer,CurrentSong)
  1232.  
  1233.  
  1234.  
  1235. end
  1236.  
  1237. PauseSong = function()
  1238. Sound:Pause()
  1239. end
  1240.  
  1241. OpenEffect = function()
  1242. EffectsGui.Visible = true
  1243.  
  1244.  
  1245. end
  1246. Resume = function()
  1247. Sound:Resume()
  1248.  
  1249.  
  1250. end
  1251.  
  1252.  
  1253. closeEff = function()
  1254. EffectsGui.Visible = false
  1255.  
  1256.  
  1257. end
  1258.  
  1259. for i_,EffectButton in pairs (SongEffects:GetChildren()) do
  1260. EffectButton.MouseButton1Down:connect(function()
  1261. if EffectButton.Name == "Exit" then
  1262.  
  1263. else
  1264.  
  1265. Sound:ClearAllChildren()
  1266. Effect32 = Instance.new(EffectButton.Name)
  1267. Effect32.Parent = Sound
  1268. Effect32.Name = EffectButton.Name
  1269. end
  1270.  
  1271.  
  1272. end)
  1273. end
  1274.  
  1275. -- EASING FUNCTIONS --
  1276. local function quadIn(t,b,c,d) t=t/d; return c*t*t+b; end;
  1277. local function quadOut(t,b,c,d) t=t/d; return -c*t*(t-2)+b; end;
  1278. local function Quad(obj,val,ease,d)
  1279. local t,f,con,nt,st,sd=tick()
  1280. Tweens[obj]=t -- Set identifier
  1281. st=obj.Scale.Y -- Start Value
  1282. sd=val-st -- Change in Value
  1283. f=ease=='In' and quadIn or quadOut -- Choose between Out/In
  1284. con=game:GetService'RunService'.RenderStepped:connect(function() nt=tick()-t
  1285. if Tweens[obj]~=t then -- Check for override
  1286. con:disconnect()
  1287. return
  1288. end
  1289. local nv=math.max(.2,f(math.min(d,nt),st,sd,d)) -- New Value
  1290. obj.Scale=Vector3.new(.9,nv,.9)
  1291. obj.Offset=Vector3.new(0,nv/4,0)
  1292. obj.VertexColor = Vector3.new(cycle(tick())):lerp(Vector3.new(1,1,1),nv/Height)
  1293. if nt>d then -- Easing done?
  1294. con:disconnect()
  1295. if ease~='In' then
  1296. Quad(obj,.2,'In',.3) -- Drop the bar
  1297. end
  1298. end
  1299. end)
  1300. end
  1301.  
  1302. -- BAR MANIPULATION --
  1303. local function CheckSet(N,S,D) -- Number, Scale, Direction
  1304. local nS=Soundbar[tostring(N)].Mesh.Scale.Y
  1305. if S>nS then
  1306. Set(N,nS+(S-nS)/3,D)
  1307. end
  1308. end
  1309.  
  1310. function Set(N,S,D) -- Number, Scale, Direction
  1311. Quad(Soundbar[tostring(N)].Mesh,S,'Out',.1) -- Grabs the bar and tweens
  1312. if N>0 and D~=1 then -- Checks left for smaller bars to manipulate
  1313. CheckSet(N-1,S,-1)
  1314. end
  1315. if N<nBars and D~=-1 then -- Checks right...
  1316. CheckSet(N+1,S,1)
  1317. end
  1318. end
  1319.  
  1320. -- RENDER LOOP --
  1321. local MPL,PL,curr=0 curr=Sound.SoundId
  1322. spawn(function()
  1323. game:service'RunService'.RenderStepped:connect(function()
  1324. PL=Sound.PlaybackLoudness
  1325. if Sound.IsPlaying and PL==PL then -- Sound is playing & PlaybackLoudness is not undefined
  1326. if curr~=Sound.SoundId then MPL=0 -- Reset the relative Max PlaybackLoudness on song change
  1327. curr=Sound.SoundId
  1328. end
  1329. MPL=math.max(PL,MPL) PL=PL/MPL -- Normalize PL based on relative Max PlaybackLoudness
  1330. if PL==PL then
  1331. Set(math.floor(PL*nBars),PL*Height*1) -- Modify bar relative to PlaybackLoudness
  1332. end
  1333. end
  1334. end)
  1335. end)
  1336.  
  1337. local Locked
  1338.  
  1339.  
  1340. local CRot = 1
  1341. local rad,sin,ceil=math.rad,math.sin,math.ceil
  1342.  
  1343. local p = owner
  1344.  
  1345. local Parts = {}
  1346. for Index,v in pairs(o1:children'') do
  1347. if v:IsA'Part' then
  1348. table.insert(Parts,v)
  1349. end
  1350. end
  1351.  
  1352. spawn(function()
  1353. game:service'RunService'.RenderStepped:connect(function()
  1354. for Index,v in pairs(o1:children'') do
  1355. if v:IsA'Part' then
  1356. v.CFrame = CFrame.new(plr.Character.Torso.Position)
  1357. *CFrame.Angles(0,rad((360/#Parts*Index+(tick())*60/(#Parts ~= 0 and #Parts or 1))%360),0)
  1358. *CFrame.new(0, -3, (5+#Parts)*.35+v.Size.X)
  1359. *CFrame.Angles(0,90+CRot,0)
  1360. end
  1361. end
  1362. end)
  1363. end)
  1364.  
  1365. Apply = function()
  1366. if PitchValue.Text == "" or PitchValue.Text == nil then
  1367.  
  1368.  
  1369. else
  1370. if VolumeValue.Text == "" or VolumeValue.Text == nil then
  1371.  
  1372.  
  1373. else
  1374. Sound.Volume = VolumeValue.Text
  1375. Sound.Pitch = PitchValue.Text
  1376. end
  1377. end
  1378.  
  1379.  
  1380. end
  1381. PlaySong.MouseButton1Down:connect(idinput)
  1382. Download.MouseButton1Down:connect(downloadsong)
  1383. Pause.MouseButton1Down:connect(PauseSong)
  1384. OpenEffects.MouseButton1Down:connect(OpenEffect)
  1385. ExitEffects.MouseButton1Down:connect(closeEff)
  1386. Play.MouseButton1Down:connect(Resume)
  1387. ApplySettings.MouseButton1Down:connect(Apply)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement