Advertisement
Guest User

Music

a guest
Nov 20th, 2017
227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 40.05 KB | None | 0 0
  1. function clerp(c1,c2,al)
  2. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  3. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  4. for i,v in pairs(com1) do
  5. com1[i] = v+(com2[i]-v)*al
  6. end
  7. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  8. end
  9.  
  10.  
  11. local plr = game:service'Players'.LocalPlayer
  12. plrgui = plr.PlayerGui
  13. char = plr.Character
  14. mouse = plr:GetMouse()
  15. humanoid = char:findFirstChild("Humanoid")
  16. torso = char:findFirstChild("Torso")
  17. head = char.Head
  18. ra = char:findFirstChild("Right Arm")
  19. la = char:findFirstChild("Left Arm")
  20. rl = char:findFirstChild("Right Leg")
  21. ll = char:findFirstChild("Left Leg")
  22. rs = torso:findFirstChild("Right Shoulder")
  23. ls = torso:findFirstChild("Left Shoulder")
  24. rh = torso:findFirstChild("Right Hip")
  25. lh = torso:findFirstChild("Left Hip")
  26. neck = torso:findFirstChild("Neck")
  27. rj = char:findFirstChild("HumanoidRootPart"):findFirstChild("RootJoint")
  28. rootpart = char:findFirstChild("HumanoidRootPart")
  29. camera = workspace.CurrentCamera
  30. anim = char:findFirstChild("Animate")
  31. local sound = Instance.new("Sound", char)
  32. sound.Volume = 1
  33. sound.Looped = true
  34. sound.Name = "Sound"
  35.  
  36. SoundsList = {}
  37.  
  38. function newSound(name, id, pitch, puush)
  39. if not puush == true then puush = false end
  40. if puush then
  41. table.insert(SoundsList, {["Name"]=name, ["ID"]="puush("..id..")", ["Pitch"]=pitch or 1})
  42. else
  43. table.insert(SoundsList, {["Name"]=name, ["ID"]=id, ["Pitch"]=pitch or 1})
  44. end
  45. end
  46.  
  47. newSound("Saints Row IV Theme (puush asset)", "9jVEX", 1, true)
  48. newSound("Tomorrows Kings", "551177463")
  49. newSound("Martin Garrix - Animals", "142370129")
  50. newSound("The Proclaimers - 500 Miles", "151371405")
  51. newSound("Avicii - Wake me up", "142603004")
  52. newSound("Hip Hop - Jeff Syndicate", "27697735", 3)
  53. newSound("Alice Deejay - Better Off Alone", "142397452")
  54. newSound("BBBFF - My Little Pony", "142605535")
  55. newSound("Intro - My Little Pony", "142626518")
  56. newSound("Bangarang - Skrillex", "142319852")
  57. newSound("Surfin' Bird ", "145567707")
  58. newSound("You've been trolled", "142633540")
  59. newSound('Disco Star - Spongebob video game', '144906669')
  60. newSound("Europe - The Final Countdown", "142859512")
  61. newSound("LMFAO - Party Rock Anthem", "145262991")
  62. newSound("Darude - Sandstorm", "142401311", .53)
  63. newSound('Skrillex - Fire', '150137157')
  64. newSound('Spongebob - Goofy Goober Rock', '142396943')
  65. newSound('The Slenderman song (Comedy)', '142776228')
  66. newSound('Avicii - Levels', "148424799")
  67. newSound('Erectin\' a river', '145849454')
  68. newSound('TTC - Fat cat Adventures [Glitch Hop]', '142808748')
  69. newSound('Thrift Shop - Macklemore', '155119191')
  70. newSound('Five Nights At Freddys 2 Song', '192043328')
  71.  
  72. local function HSV(H,S,V)
  73. H = H % 360
  74. local C = V * S
  75. local H2 = H/60
  76. local X = C * (1 - math.abs((H2 %2) -1))
  77. local color = Color3.new(0,0,0)
  78. if H2 <= 0 then
  79. color = Color3.new(C,0,0)
  80. elseif 0 <= H2 and H2 <= 1 then
  81. color = Color3.new(C,X,0)
  82. elseif 1 <= H2 and H2 <= 2 then
  83. color = Color3.new(X,C,0)
  84. elseif 2 <= H2 and H2 <= 3 then
  85. color = Color3.new(0,C,X)
  86. elseif 3 <= H2 and H2 <= 4 then
  87. color = Color3.new(0,X,C)
  88. elseif 4 <= H2 and H2 <= 5 then
  89. color = Color3.new(X,0,C)
  90. elseif 5 <= H2 and H2 <= 6 then
  91. color = Color3.new(C,0,X)
  92. end
  93. local m = V - C
  94. return Color3.new(color.r + m, color.g + m, color.b + m)
  95. end
  96.  
  97. function RemoveDisco()
  98. char:findFirstChild'DiscoBox':remove()
  99. gui:remove()
  100. sound:stop()
  101. end
  102.  
  103. function BeginPlacingDisco()
  104. -- 1 - DiscoBox
  105. local obj1 = Instance.new("Model")
  106. obj1.Name = "DiscoBox"
  107. obj1.Parent = char
  108.  
  109. -- 2 - DiscTop
  110. obj2 = Instance.new("Part")
  111. obj2.CFrame = CFrame.new(Vector3.new(-34.5000038, 3.09000182, -48.5)) * CFrame.Angles(-0, 0, -0)
  112. obj2.FormFactor = Enum.FormFactor.Custom
  113. obj2.TopSurface = Enum.SurfaceType.Smooth
  114. obj2.BottomSurface = Enum.SurfaceType.Smooth
  115. obj2.Material = Enum.Material.SmoothPlastic
  116. obj2.Size = Vector3.new(3, 0.200000003, 3)
  117. obj2.BrickColor = BrickColor.new("Dark stone grey")
  118. obj2.Friction = 0.30000001192093
  119. obj2.Shape = Enum.PartType.Block
  120. obj2.Name = "DiscTop"
  121. obj2.Parent = obj1
  122.  
  123. -- 3 - Mesh
  124. obj3 = Instance.new("CylinderMesh")
  125. obj3.Scale = Vector3.new(0.200000003, 1.04999995, 0.200000003)
  126. obj3.Parent = obj2
  127.  
  128. -- 4 - Part-to-Part Strong Joint
  129. obj4 = Instance.new("ManualWeld")
  130. obj4.Part0 = DiscTop
  131. obj4.Part1 = Part
  132. obj4.Name = "Part-to-Part Strong Joint"
  133. obj4.Parent = obj2
  134.  
  135. -- 5 - Disc
  136. obj5 = Instance.new("Part")
  137. obj5.CFrame = CFrame.new(Vector3.new(-34.5, 3.08999991, -48.5)) * CFrame.Angles(-0, 0, -0)
  138. obj5.FormFactor = Enum.FormFactor.Custom
  139. obj5.TopSurface = Enum.SurfaceType.Smooth
  140. obj5.BottomSurface = Enum.SurfaceType.Smooth
  141. obj5.Material = Enum.Material.Sand
  142. obj5.Size = Vector3.new(3, 0.200000003, 3)
  143. obj5.BrickColor = BrickColor.new("Black")
  144. obj5.Friction = 0.30000001192093
  145. obj5.Shape = Enum.PartType.Block
  146. obj5.Name = "Disc"
  147. obj5.Parent = obj1
  148.  
  149. -- 6 - Mesh
  150. obj6 = Instance.new("CylinderMesh")
  151. obj6.Scale = Vector3.new(0.899999976, 1, 0.899999976)
  152. obj6.Parent = obj5
  153.  
  154. -- 7 - Part-to-Part Strong Joint
  155. obj7 = Instance.new("ManualWeld")
  156. obj7.Part0 = Disc
  157. obj7.Part1 = Part
  158. obj7.Name = "Part-to-Part Strong Joint"
  159. obj7.Parent = obj5
  160.  
  161. -- 8 - Part
  162. obj8 = Instance.new("Part")
  163. obj8.CFrame = CFrame.new(Vector3.new(-37.5, 2.88999987, -49.5)) * CFrame.Angles(-0, 0, -0)
  164. obj8.FormFactor = Enum.FormFactor.Custom
  165. obj8.TopSurface = Enum.SurfaceType.Smooth
  166. obj8.BottomSurface = Enum.SurfaceType.Smooth
  167. obj8.Material = Enum.Material.SmoothPlastic
  168. obj8.Size = Vector3.new(1, 0.200000003, 1)
  169. obj8.BrickColor = BrickColor.new("Mid gray")
  170. obj8.Friction = 0.30000001192093
  171. obj8.Shape = Enum.PartType.Block
  172. obj8.Parent = obj1
  173.  
  174. -- 9 - Mesh
  175. obj9 = Instance.new("CylinderMesh")
  176. obj9.Scale = Vector3.new(0.5, 1.04999995, 0.5)
  177. obj9.Parent = obj8
  178.  
  179. -- 10 - Part-to-Part Strong Joint
  180. obj10 = Instance.new("ManualWeld")
  181. obj10.Part0 = Part
  182. obj10.Part1 = Part
  183. obj10.Name = "Part-to-Part Strong Joint"
  184. obj10.Parent = obj8
  185.  
  186. -- 11 - Part
  187. obj11 = Instance.new("Part")
  188. obj11.CFrame = CFrame.new(Vector3.new(-36.5, 2.88999987, -49.5)) * CFrame.Angles(-0, 0, -0)
  189. obj11.FormFactor = Enum.FormFactor.Custom
  190. obj11.TopSurface = Enum.SurfaceType.Smooth
  191. obj11.BottomSurface = Enum.SurfaceType.Smooth
  192. obj11.Material = Enum.Material.SmoothPlastic
  193. obj11.Size = Vector3.new(1, 0.200000003, 1)
  194. obj11.BrickColor = BrickColor.new("Mid gray")
  195. obj11.Friction = 0.30000001192093
  196. obj11.Shape = Enum.PartType.Block
  197. obj11.Parent = obj1
  198.  
  199. -- 12 - Mesh
  200. obj12 = Instance.new("CylinderMesh")
  201. obj12.Scale = Vector3.new(0.400000006, 1.04999995, 0.400000006)
  202. obj12.Parent = obj11
  203.  
  204. -- 13 - Bar
  205. obj13 = Instance.new("Part")
  206. obj13.CFrame = CFrame.new(Vector3.new(-37.0000114, 3.09000063, -50.5)) * CFrame.Angles(-0, 0, -0)
  207. obj13.FormFactor = Enum.FormFactor.Custom
  208. obj13.TopSurface = Enum.SurfaceType.Smooth
  209. obj13.BottomSurface = Enum.SurfaceType.Smooth
  210. obj13.Material = Enum.Material.SmoothPlastic
  211. obj13.Size = Vector3.new(7.99999905, 0.200000003, 1)
  212. obj13.BrickColor = BrickColor.new("Really black")
  213. obj13.Friction = 0.30000001192093
  214. obj13.Shape = Enum.PartType.Block
  215. obj13.Parent = obj1
  216.  
  217. -- 14 - Part-to-Part Strong Joint
  218. obj14 = Instance.new("ManualWeld")
  219. obj14.Part0 = Part
  220. obj14.Part1 = nil
  221. obj14.Name = "Part-to-Part Strong Joint"
  222. obj14.Parent = obj13
  223.  
  224. -- 15 - Part-to-Part Strong Joint
  225. obj15 = Instance.new("ManualWeld")
  226. obj15.Part0 = Part
  227. obj15.Part1 = nil
  228. obj15.Name = "Part-to-Part Strong Joint"
  229. obj15.Parent = obj13
  230.  
  231. -- 16 - Mesh
  232. obj16 = Instance.new("BlockMesh")
  233. obj16.Scale = Vector3.new(0.899999976, 1.04999995, 0.200000003)
  234. obj16.Parent = obj13
  235.  
  236. -- 17 - Box
  237. obj17 = Instance.new("Part")
  238. obj17.CFrame = CFrame.new(Vector3.new(-37, 1.49000001, -49)) * CFrame.Angles(-0, 0, -0)
  239. obj17.FormFactor = Enum.FormFactor.Symmetric
  240. obj17.TopSurface = Enum.SurfaceType.Smooth
  241. obj17.BottomSurface = Enum.SurfaceType.Smooth
  242. obj17.Material = Enum.Material.SmoothPlastic
  243. obj17.Size = Vector3.new(8, 3, 4)
  244. obj17.BrickColor = BrickColor.new("Dark stone grey")
  245. obj17.Friction = 0.30000001192093
  246. obj17.Shape = Enum.PartType.Block
  247. obj17.Name = "Box"
  248. obj17.Parent = obj1
  249.  
  250. -- 18 - Part-to-Part Strong Joint
  251. obj18 = Instance.new("ManualWeld")
  252. obj18.Part0 = Box
  253. obj18.Part1 = Part
  254. obj18.Name = "Part-to-Part Strong Joint"
  255. obj18.Parent = obj17
  256.  
  257. -- 19 - Part-to-Part Strong Joint
  258. obj19 = Instance.new("ManualWeld")
  259. obj19.Part0 = Box
  260. obj19.Part1 = Disc
  261. obj19.Name = "Part-to-Part Strong Joint"
  262. obj19.Parent = obj17
  263.  
  264. -- 20 - Part-to-Part Strong Joint
  265. obj20 = Instance.new("ManualWeld")
  266. obj20.Part0 = Box
  267. obj20.Part1 = Disc2
  268. obj20.Name = "Part-to-Part Strong Joint"
  269. obj20.Parent = obj17
  270.  
  271. -- 21 - Part-to-Part Strong Joint
  272. obj21 = Instance.new("ManualWeld")
  273. obj21.Part0 = Box
  274. obj21.Part1 = DiscTop2
  275. obj21.Name = "Part-to-Part Strong Joint"
  276. obj21.Parent = obj17
  277.  
  278. -- 22 - Part-to-Part Strong Joint
  279. obj22 = Instance.new("ManualWeld")
  280. obj22.Part0 = Box
  281. obj22.Part1 = DiscTop
  282. obj22.Name = "Part-to-Part Strong Joint"
  283. obj22.Parent = obj17
  284.  
  285. -- 23 - Part-to-Part Strong Joint
  286. obj23 = Instance.new("ManualWeld")
  287. obj23.Part0 = Box
  288. obj23.Part1 = Part
  289. obj23.Name = "Part-to-Part Strong Joint"
  290. obj23.Parent = obj17
  291.  
  292. -- 24 - Part-to-Part Strong Joint
  293. obj24 = Instance.new("ManualWeld")
  294. obj24.Part0 = Box
  295. obj24.Part1 = Part
  296. obj24.Name = "Part-to-Part Strong Joint"
  297. obj24.Parent = obj17
  298.  
  299. -- 25 - Part-to-Part Strong Joint
  300. obj25 = Instance.new("ManualWeld")
  301. obj25.Part0 = Box
  302. obj25.Part1 = Part
  303. obj25.Name = "Part-to-Part Strong Joint"
  304. obj25.Parent = obj17
  305.  
  306. -- 26 - Box-to-Part Strong Joint
  307. obj26 = Instance.new("ManualWeld")
  308. obj26.Part0 = Box
  309. obj26.Part1 = Slider
  310. obj26.Name = "Box-to-Part Strong Joint"
  311. obj26.Parent = obj17
  312.  
  313. -- 27 - Box-to-Part Strong Joint
  314. obj27 = Instance.new("ManualWeld")
  315. obj27.Part0 = Box
  316. obj27.Part1 = Slider2
  317. obj27.Name = "Box-to-Part Strong Joint"
  318. obj27.Parent = obj17
  319.  
  320. -- 28 - Part
  321. obj28 = Instance.new("Part")
  322. obj28.CFrame = CFrame.new(Vector3.new(-37.5, 2.88999987, -48.5)) * CFrame.Angles(-0, 0, -0)
  323. obj28.FormFactor = Enum.FormFactor.Custom
  324. obj28.TopSurface = Enum.SurfaceType.Smooth
  325. obj28.BottomSurface = Enum.SurfaceType.Smooth
  326. obj28.Material = Enum.Material.SmoothPlastic
  327. obj28.Size = Vector3.new(1, 0.200000003, 1)
  328. obj28.BrickColor = BrickColor.new("Bright red")
  329. obj28.Friction = 0.30000001192093
  330. obj28.Shape = Enum.PartType.Block
  331. obj28.Parent = obj1
  332.  
  333. -- 29 - Mesh
  334. obj29 = Instance.new("CylinderMesh")
  335. obj29.Scale = Vector3.new(0.5, 1.04999995, 0.5)
  336. obj29.Parent = obj28
  337.  
  338. -- 30 - Part-to-Part Strong Joint
  339. obj30 = Instance.new("ManualWeld")
  340. obj30.Part0 = Part
  341. obj30.Part1 = Part
  342. obj30.Name = "Part-to-Part Strong Joint"
  343. obj30.Parent = obj28
  344.  
  345. -- 31 - Part-to-Part Strong Joint
  346. obj31 = Instance.new("ManualWeld")
  347. obj31.Part0 = Part
  348. obj31.Part1 = Part
  349. obj31.Name = "Part-to-Part Strong Joint"
  350. obj31.Parent = obj28
  351.  
  352. -- 32 - Part
  353. obj32 = Instance.new("Part")
  354. obj32.CFrame = CFrame.new(Vector3.new(-37, 3.09000087, -50.5)) * CFrame.Angles(-0, 0, -0)
  355. obj32.FormFactor = Enum.FormFactor.Custom
  356. obj32.TopSurface = Enum.SurfaceType.Smooth
  357. obj32.BottomSurface = Enum.SurfaceType.Smooth
  358. obj32.Material = Enum.Material.SmoothPlastic
  359. obj32.Size = Vector3.new(8, 0.200000003, 1)
  360. obj32.BrickColor = BrickColor.new("Dark stone grey")
  361. obj32.Friction = 0.30000001192093
  362. obj32.Shape = Enum.PartType.Block
  363. obj32.Parent = obj1
  364.  
  365. -- 33 - Part-to-Part Strong Joint
  366. obj33 = Instance.new("ManualWeld")
  367. obj33.Part0 = Part
  368. obj33.Part1 = Disc
  369. obj33.Name = "Part-to-Part Strong Joint"
  370. obj33.Parent = obj32
  371.  
  372. -- 34 - Part-to-Part Strong Joint
  373. obj34 = Instance.new("ManualWeld")
  374. obj34.Part0 = Part
  375. obj34.Part1 = Disc2
  376. obj34.Name = "Part-to-Part Strong Joint"
  377. obj34.Parent = obj32
  378.  
  379. -- 35 - Part-to-Part Strong Joint
  380. obj35 = Instance.new("ManualWeld")
  381. obj35.Part0 = Part
  382. obj35.Part1 = DiscTop2
  383. obj35.Name = "Part-to-Part Strong Joint"
  384. obj35.Parent = obj32
  385.  
  386. -- 36 - Part-to-Part Strong Joint
  387. obj36 = Instance.new("ManualWeld")
  388. obj36.Part0 = Part
  389. obj36.Part1 = DiscTop
  390. obj36.Name = "Part-to-Part Strong Joint"
  391. obj36.Parent = obj32
  392.  
  393. -- 37 - Part
  394. obj37 = Instance.new("Part")
  395. obj37.CFrame = CFrame.new(Vector3.new(-36.5, 2.88999987, -48.5)) * CFrame.Angles(-0, 0, -0)
  396. obj37.FormFactor = Enum.FormFactor.Custom
  397. obj37.TopSurface = Enum.SurfaceType.Smooth
  398. obj37.BottomSurface = Enum.SurfaceType.Smooth
  399. obj37.Material = Enum.Material.SmoothPlastic
  400. obj37.Size = Vector3.new(1, 0.200000003, 1)
  401. obj37.BrickColor = BrickColor.new("Bright red")
  402. obj37.Friction = 0.30000001192093
  403. obj37.Shape = Enum.PartType.Block
  404. obj37.Parent = obj1
  405.  
  406. -- 38 - Mesh
  407. obj38 = Instance.new("CylinderMesh")
  408. obj38.Scale = Vector3.new(0.699999988, 1.04999995, 0.699999988)
  409. obj38.Parent = obj37
  410.  
  411. -- 39 - Part-to-Part Strong Joint
  412. obj39 = Instance.new("ManualWeld")
  413. obj39.Part0 = Part
  414. obj39.Part1 = Part
  415. obj39.Name = "Part-to-Part Strong Joint"
  416. obj39.Parent = obj37
  417.  
  418. -- 40 - Part-to-Part Strong Joint
  419. obj40 = Instance.new("ManualWeld")
  420. obj40.Part0 = Part
  421. obj40.Part1 = Part
  422. obj40.Name = "Part-to-Part Strong Joint"
  423. obj40.Parent = obj37
  424.  
  425. -- 41 - Part
  426. obj41 = Instance.new("Part")
  427. obj41.CFrame = CFrame.new(Vector3.new(-37.5, 2.88999963, -47.5)) * CFrame.Angles(-0, 0, -0)
  428. obj41.FormFactor = Enum.FormFactor.Custom
  429. obj41.TopSurface = Enum.SurfaceType.Smooth
  430. obj41.BottomSurface = Enum.SurfaceType.Smooth
  431. obj41.Material = Enum.Material.SmoothPlastic
  432. obj41.Size = Vector3.new(1, 0.200000003, 1)
  433. obj41.BrickColor = BrickColor.new("Bright blue")
  434. obj41.Friction = 0.30000001192093
  435. obj41.Shape = Enum.PartType.Block
  436. obj41.Parent = obj1
  437.  
  438. -- 42 - Mesh
  439. obj42 = Instance.new("CylinderMesh")
  440. obj42.Scale = Vector3.new(0.5, 1.04999995, 0.5)
  441. obj42.Parent = obj41
  442.  
  443. -- 43 - Part-to-Part Strong Joint
  444. obj43 = Instance.new("ManualWeld")
  445. obj43.Part0 = Part
  446. obj43.Part1 = Part
  447. obj43.Name = "Part-to-Part Strong Joint"
  448. obj43.Parent = obj41
  449.  
  450. -- 44 - Part
  451. obj44 = Instance.new("Part")
  452. obj44.CFrame = CFrame.new(Vector3.new(-36.5, 2.88999963, -47.5)) * CFrame.Angles(-0, 0, -0)
  453. obj44.FormFactor = Enum.FormFactor.Custom
  454. obj44.TopSurface = Enum.SurfaceType.Smooth
  455. obj44.BottomSurface = Enum.SurfaceType.Smooth
  456. obj44.Material = Enum.Material.SmoothPlastic
  457. obj44.Size = Vector3.new(1, 0.200000003, 1)
  458. obj44.BrickColor = BrickColor.new("Bright blue")
  459. obj44.Friction = 0.30000001192093
  460. obj44.Shape = Enum.PartType.Block
  461. obj44.Parent = obj1
  462.  
  463. -- 45 - Mesh
  464. obj45 = Instance.new("CylinderMesh")
  465. obj45.Scale = Vector3.new(0.200000003, 1.04999995, 0.200000003)
  466. obj45.Parent = obj44
  467.  
  468. -- 46 - Part-to-Part Strong Joint
  469. obj46 = Instance.new("ManualWeld")
  470. obj46.Part0 = Part
  471. obj46.Part1 = Part
  472. obj46.Name = "Part-to-Part Strong Joint"
  473. obj46.Parent = obj44
  474.  
  475. -- 47 - Part
  476. obj47 = Instance.new("Part")
  477. obj47.CFrame = CFrame.new(Vector3.new(-39.5000038, 2.88999963, -46.5)) * CFrame.Angles(-0, 0, -0)
  478. obj47.FormFactor = Enum.FormFactor.Custom
  479. obj47.TopSurface = Enum.SurfaceType.Smooth
  480. obj47.BottomSurface = Enum.SurfaceType.Smooth
  481. obj47.Material = Enum.Material.SmoothPlastic
  482. obj47.Size = Vector3.new(3.00000048, 0.200000003, 1)
  483. obj47.BrickColor = BrickColor.new("Really black")
  484. obj47.Friction = 0.30000001192093
  485. obj47.Shape = Enum.PartType.Block
  486. obj47.Parent = obj1
  487.  
  488. -- 48 - Part-to-Part Strong Joint
  489. obj48 = Instance.new("ManualWeld")
  490. obj48.Part0 = Part
  491. obj48.Part1 = nil
  492. obj48.Name = "Part-to-Part Strong Joint"
  493. obj48.Parent = obj47
  494.  
  495. -- 49 - Part-to-Part Strong Joint
  496. obj49 = Instance.new("ManualWeld")
  497. obj49.Part0 = Part
  498. obj49.Part1 = nil
  499. obj49.Name = "Part-to-Part Strong Joint"
  500. obj49.Parent = obj47
  501.  
  502. -- 50 - Mesh
  503. obj50 = Instance.new("BlockMesh")
  504. obj50.Scale = Vector3.new(0.899999976, 1.04999995, 0.200000003)
  505. obj50.Parent = obj47
  506.  
  507. -- 51 - Part
  508. obj51 = Instance.new("Part")
  509. obj51.CFrame = CFrame.new(Vector3.new(-34.5, 2.88999963, -46.5)) * CFrame.Angles(-0, 0, -0)
  510. obj51.FormFactor = Enum.FormFactor.Custom
  511. obj51.TopSurface = Enum.SurfaceType.Smooth
  512. obj51.BottomSurface = Enum.SurfaceType.Smooth
  513. obj51.Material = Enum.Material.SmoothPlastic
  514. obj51.Size = Vector3.new(3.00000048, 0.200000003, 1)
  515. obj51.BrickColor = BrickColor.new("Really black")
  516. obj51.Friction = 0.30000001192093
  517. obj51.Shape = Enum.PartType.Block
  518. obj51.Parent = obj1
  519.  
  520. -- 52 - Part-to-Part Strong Joint
  521. obj52 = Instance.new("ManualWeld")
  522. obj52.Part0 = Part
  523. obj52.Part1 = nil
  524. obj52.Name = "Part-to-Part Strong Joint"
  525. obj52.Parent = obj51
  526.  
  527. -- 53 - Part-to-Part Strong Joint
  528. obj53 = Instance.new("ManualWeld")
  529. obj53.Part0 = Part
  530. obj53.Part1 = nil
  531. obj53.Name = "Part-to-Part Strong Joint"
  532. obj53.Parent = obj51
  533.  
  534. -- 54 - Mesh
  535. obj54 = Instance.new("BlockMesh")
  536. obj54.Scale = Vector3.new(0.899999976, 1.04999995, 0.200000003)
  537. obj54.Parent = obj51
  538.  
  539. -- 55 - DiscTop2
  540. obj55 = Instance.new("Part")
  541. obj55.CFrame = CFrame.new(Vector3.new(-39.5, 3.09000063, -48.5)) * CFrame.Angles(-0, 0, -0)
  542. obj55.FormFactor = Enum.FormFactor.Custom
  543. obj55.TopSurface = Enum.SurfaceType.Smooth
  544. obj55.BottomSurface = Enum.SurfaceType.Smooth
  545. obj55.Material = Enum.Material.SmoothPlastic
  546. obj55.Size = Vector3.new(3, 0.200000003, 3)
  547. obj55.BrickColor = BrickColor.new("Dark stone grey")
  548. obj55.Friction = 0.30000001192093
  549. obj55.Shape = Enum.PartType.Block
  550. obj55.Name = "DiscTop2"
  551. obj55.Parent = obj1
  552.  
  553. -- 56 - Mesh
  554. obj56 = Instance.new("CylinderMesh")
  555. obj56.Scale = Vector3.new(0.200000003, 1.04999995, 0.200000003)
  556. obj56.Parent = obj55
  557.  
  558. -- 57 - Part-to-Part Strong Joint
  559. obj57 = Instance.new("ManualWeld")
  560. obj57.Part0 = DiscTop2
  561. obj57.Part1 = Part
  562. obj57.Name = "Part-to-Part Strong Joint"
  563. obj57.Parent = obj55
  564.  
  565. -- 58 - Disc2
  566. obj58 = Instance.new("Part")
  567. obj58.CFrame = CFrame.new(Vector3.new(-39.5, 3.08999991, -48.5)) * CFrame.Angles(-0, 0, -0)
  568. obj58.FormFactor = Enum.FormFactor.Custom
  569. obj58.TopSurface = Enum.SurfaceType.Smooth
  570. obj58.BottomSurface = Enum.SurfaceType.Smooth
  571. obj58.Material = Enum.Material.Sand
  572. obj58.Size = Vector3.new(3, 0.200000003, 3)
  573. obj58.BrickColor = BrickColor.new("Black")
  574. obj58.Friction = 0.30000001192093
  575. obj58.Shape = Enum.PartType.Block
  576. obj58.Name = "Disc2"
  577. obj58.Parent = obj1
  578.  
  579. -- 59 - Mesh
  580. obj59 = Instance.new("CylinderMesh")
  581. obj59.Scale = Vector3.new(0.899999976, 1, 0.899999976)
  582. obj59.Parent = obj58
  583.  
  584. -- 60 - Part-to-Part Strong Joint
  585. obj60 = Instance.new("ManualWeld")
  586. obj60.Part0 = Disc2
  587. obj60.Part1 = Part
  588. obj60.Name = "Part-to-Part Strong Joint"
  589. obj60.Parent = obj58
  590.  
  591. -- 61 - Part
  592. obj61 = Instance.new("Part")
  593. obj61.CFrame = CFrame.new(Vector3.new(-37, 2.69000006, -46.5)) * CFrame.Angles(-0, 0, -0)
  594. obj61.FormFactor = Enum.FormFactor.Custom
  595. obj61.TopSurface = Enum.SurfaceType.Smooth
  596. obj61.BottomSurface = Enum.SurfaceType.Smooth
  597. obj61.Material = Enum.Material.SmoothPlastic
  598. obj61.Size = Vector3.new(8, 0.600000024, 1)
  599. obj61.BrickColor = BrickColor.new("Dark stone grey")
  600. obj61.Friction = 0.30000001192093
  601. obj61.Shape = Enum.PartType.Block
  602. obj61.Parent = obj1
  603.  
  604. -- 62 - Slider2
  605. obj62 = Instance.new("Part")
  606. obj62.CFrame = CFrame.new(Vector3.new(-38.7000237, 2.89000058, -46.5)) * CFrame.Angles(-0, 0, -0)
  607. obj62.FormFactor = Enum.FormFactor.Custom
  608. obj62.TopSurface = Enum.SurfaceType.Smooth
  609. obj62.BottomSurface = Enum.SurfaceType.Smooth
  610. obj62.Material = Enum.Material.SmoothPlastic
  611. obj62.Size = Vector3.new(0.200000152, 0.200000003, 1)
  612. obj62.BrickColor = BrickColor.new("Dark stone grey")
  613. obj62.Friction = 0.30000001192093
  614. obj62.Shape = Enum.PartType.Block
  615. obj62.Name = "Slider2"
  616. obj62.Parent = obj1
  617.  
  618. -- 63 - Part-to-Part Strong Joint
  619. obj63 = Instance.new("ManualWeld")
  620. obj63.Part0 = Slider2
  621. obj63.Part1 = nil
  622. obj63.Name = "Part-to-Part Strong Joint"
  623. obj63.Parent = obj62
  624.  
  625. -- 64 - Part-to-Part Strong Joint
  626. obj64 = Instance.new("ManualWeld")
  627. obj64.Part0 = Slider2
  628. obj64.Part1 = nil
  629. obj64.Name = "Part-to-Part Strong Joint"
  630. obj64.Parent = obj62
  631.  
  632. -- 65 - Mesh
  633. obj65 = Instance.new("BlockMesh")
  634. obj65.Scale = Vector3.new(0.899999976, 1.45000005, 0.5)
  635. obj65.Parent = obj62
  636.  
  637. -- 66 - Slider
  638. obj66 = Instance.new("Part")
  639. obj66.CFrame = CFrame.new(Vector3.new(-34.6999969, 2.88999987, -46.5)) * CFrame.Angles(-0, 0, -0)
  640. obj66.FormFactor = Enum.FormFactor.Custom
  641. obj66.TopSurface = Enum.SurfaceType.Smooth
  642. obj66.BottomSurface = Enum.SurfaceType.Smooth
  643. obj66.Material = Enum.Material.SmoothPlastic
  644. obj66.Size = Vector3.new(0.200000152, 0.200000003, 1)
  645. obj66.BrickColor = BrickColor.new("Dark stone grey")
  646. obj66.Friction = 0.30000001192093
  647. obj66.Shape = Enum.PartType.Block
  648. obj66.Name = "Slider"
  649. obj66.Parent = obj1
  650.  
  651. -- 67 - Part-to-Part Strong Joint
  652. obj67 = Instance.new("ManualWeld")
  653. obj67.Part0 = Slider
  654. obj67.Part1 = nil
  655. obj67.Name = "Part-to-Part Strong Joint"
  656. obj67.Parent = obj66
  657.  
  658. -- 68 - Part-to-Part Strong Joint
  659. obj68 = Instance.new("ManualWeld")
  660. obj68.Part0 = Slider
  661. obj68.Part1 = nil
  662. obj68.Name = "Part-to-Part Strong Joint"
  663. obj68.Parent = obj66
  664.  
  665. -- 69 - Mesh
  666. obj69 = Instance.new("BlockMesh")
  667. obj69.Scale = Vector3.new(0.899999976, 1.45000005, 0.5)
  668. obj69.Parent = obj66
  669.  
  670. for i,v in pairs(obj1:children()) do
  671. v.Anchored = true
  672. v.Locked = true
  673. end
  674.  
  675. function Recursive(Model)
  676. local Stuff = {}
  677. local function Recur(Targ)
  678. for i,v in pairs(Targ:getChildren()) do
  679. table.insert(Stuff,v)
  680. Recur(v)
  681. end
  682. end
  683. Recur(Model)
  684. return Stuff
  685. end
  686.  
  687. function MoveModel(Model,CF)
  688. local Center = Model:getModelCFrame()
  689. local Offsets = {}
  690. for i,v in pairs (Recursive(Model)) do
  691. if v:IsA("BasePart") then
  692. Offsets[v] = CF*Center:toObjectSpace(v.CFrame)
  693. end
  694. end
  695.  
  696. for i,v in pairs(Offsets) do
  697. i.CFrame = v
  698. end
  699. end
  700.  
  701. MoveModel(obj1, torso.CFrame*CFrame.new(0,-1.5,-3))
  702.  
  703. local value = 0
  704. local Slider2CFrame = obj62.CFrame
  705. local SliderCFrame = obj66.CFrame
  706. local colur = 0
  707. local hue = 0
  708. local DiscoLight = Instance.new('PointLight', obj2)
  709. DiscoLight.Range = 0
  710. game:service'RunService'.RenderStepped:connect(function()
  711. if obj1.Parent ~= char then return end
  712. if sound.IsPlaying then
  713. hue = ((hue+5)%360)
  714. colur = HSV(hue,.8,.8)
  715. DiscoLight.Color = Color3.new(colur.r, colur.g, colur.b)
  716. DiscoLight.Range = 60
  717. value = (value % 360) + math.random()
  718. obj13.Color = Color3.new(colur.r, colur.g, colur.b)
  719. obj58.CFrame = obj58.CFrame * CFrame.Angles(0, .05, 0)
  720. obj5.CFrame = obj5.CFrame * CFrame.Angles(0, .05, 0)
  721. obj62.CFrame = Slider2CFrame * CFrame.new(math.sin(value)*.25, 0, 0)
  722. obj66.CFrame = SliderCFrame * CFrame.new(-math.sin(value)*.25, 0, 0)
  723. else
  724. DiscoLight.Range = 0
  725. obj13.Color = Color3.new()
  726. end
  727. end)
  728.  
  729. local function createText(parent, msg, line, size, func)
  730. local textLabel
  731. if func then
  732. textLabel = Instance.new("TextButton", parent)
  733. else
  734. textLabel = Instance.new("TextLabel", parent)
  735. end
  736. textLabel.Text = msg
  737. textLabel.Name = "List"
  738. if size ~= true then
  739. textLabel.TextScaled = false
  740. textLabel.FontSize = 'Size14'
  741. elseif size == true then
  742. textLabel.TextScaled = true
  743. end
  744. textLabel.BackgroundColor = BrickColor.new'Olive'
  745. textLabel.BackgroundTransparency = .9
  746. textLabel.TextColor = BrickColor.White()
  747. textLabel.TextStrokeTransparency = 0.65
  748. textLabel.Size = UDim2.new(1, 0, 0, 25)
  749. textLabel.TextXAlignment = 'Left'
  750. textLabel.Position = UDim2.new(0, 0, 0, (line-1)*25)
  751. if func then
  752. textLabel.MouseButton1Down:connect(function()
  753. local r,e = ypcall(function()
  754. func(plr)
  755. end)
  756. if e then print(e) end
  757. end)
  758. end
  759. end
  760.  
  761. gui = Instance.new('ScreenGui', plrgui)
  762. gui.Name = 'äMixer'
  763. wait()
  764. local dragframe = Instance.new('Frame', gui)
  765. dragframe.Size = UDim2.new(0, 598, 0, 18)
  766. dragframe.BackgroundColor = BrickColor.new'Dark stone grey'
  767. dragframe.Position = UDim2.new(0, gui.AbsoluteSize.X - gui.AbsoluteSize.X/2 - 300, 0, 10)
  768. dragframe.Active = true
  769. dragframe.Draggable = true
  770. dragframe.ZIndex = 3
  771. dragframe.BorderSizePixel = 0
  772. local mainframe = Instance.new('Frame', dragframe)
  773. mainframe.Size = UDim2.new(0, 600, 0, 415)
  774. mainframe.Position = UDim2.new(0, -1, 0, -1)
  775. mainframe.BackgroundColor = BrickColor.new'Olive'
  776. local CPframe = Instance.new('ScrollingFrame', mainframe)
  777. CPframe.Size = UDim2.new(0, 470, 0, 22)
  778. CPframe.Position = UDim2.new(0, 130, 0, 50)
  779. CPframe.BackgroundColor = BrickColor.new'Dark stone grey'
  780. CPframe.ScrollBarThickness = 0
  781. local CP = Instance.new('TextLabel', CPframe)
  782. CP.Size = UDim2.new(1,0,0,22)
  783. CP.BackgroundTransparency = 1
  784. CP.ZIndex = 7
  785. CP.FontSize = 'Size18'
  786. CP.TextColor3 = Color3.new(1,1,1)
  787. CP.TextStrokeTransparency = 0
  788. CP.TextXAlignment = 'Left'
  789. CP.Text = 'Playing /-/ None'
  790.  
  791. local oldCPframePos
  792.  
  793. local scrollframe = Instance.new('ScrollingFrame', mainframe)
  794. scrollframe.Size = UDim2.new(0, 590, 0, 330)
  795. scrollframe.Position = UDim2.new(0, 5, 0, 80)
  796. scrollframe.BackgroundColor = BrickColor.new'Olive'
  797. scrollframe.CanvasSize = UDim2.new(0, 590, 0, 25*#SoundsList)
  798. local playbutton = Instance.new('TextButton', mainframe)
  799. playbutton.Size = UDim2.new(0, 50, 0, 50)
  800. playbutton.Position = UDim2.new(0, 10, 0, 25)
  801. playbutton.BackgroundColor3 = Color3.new(0,1,0)
  802. playbutton.Text = ">"
  803. playbutton.TextScaled = true
  804. playbutton.TextColor3 = Color3.new(1,1,1)
  805. playbutton.TextStrokeTransparency = 0
  806. playbutton.MouseButton1Down:connect(function()
  807. game:service'ContentProvider':Preload(sound.SoundId)
  808. sound:play()
  809. local r,e = ypcall(function()
  810. CP.Text = 'Playing /-/ '..game:service'MarketplaceService':GetProductInfo(sound.SoundId:match("%d+")).Name
  811. end)
  812. if e then CP.Text = 'Playing /-/ Unknown asset' end
  813. wait()
  814. CPframe.CanvasSize = UDim2.new(0, CP.TextBounds.X, 0, 0)
  815. end)
  816. local stopbutton = Instance.new('TextButton', mainframe)
  817. stopbutton.Size = UDim2.new(0, 50, 0, 50)
  818. stopbutton.Position = UDim2.new(0, 70, 0, 25)
  819. stopbutton.BackgroundColor3 = Color3.new(1,0,0)
  820. stopbutton.Text = "="
  821. stopbutton.TextScaled = true
  822. stopbutton.TextColor3 = Color3.new(1,1,1)
  823. stopbutton.TextStrokeTransparency = 0
  824. stopbutton.MouseButton1Down:connect(function()
  825. sound:stop()
  826. CP.Text = 'Playing /-/ None'
  827. CPframe.CanvasPosition = Vector2.new()
  828. end)
  829. local idbox = Instance.new('TextBox', mainframe)
  830. idbox.Size = UDim2.new(0, 100, 0, 22)
  831. idbox.Position = UDim2.new(0, 130, 0, 25)
  832. idbox.Text = 'Insert ID here'
  833. idbox.BackgroundTransparency = .5
  834. idbox.TextScaled = true
  835. idbox.TextXAlignment = 'Left'
  836. idbox.BackgroundColor3 = BrickColor.new'Olive'.Color
  837. idbox.TextColor3 = Color3.new()
  838. idbox.TextStrokeTransparency = 0
  839. local submit = Instance.new('TextButton', mainframe)
  840. submit.Size = UDim2.new(0, 50, 0, 22)
  841. submit.Position = UDim2.new(0, 240, 0, 25)
  842. submit.BackgroundColor3 = Color3.new(.2,.5,.4)
  843. submit.Text = "Submit ID"
  844. submit.TextScaled = false
  845. submit.TextColor3 = Color3.new(1,1,1)
  846. submit.TextStrokeTransparency = 0
  847. submit.MouseButton1Down:connect(function()
  848. if idbox.Text == 'Insert ID here' then return end
  849. sound:stop()
  850. sound.SoundId = "rbxassetid://"..tonumber(idbox.Text:match("%d+"))
  851. newSound(game:service'MarketplaceService':GetProductInfo(idbox.Text:match("%d+")).Name..' /-ID-/ '..idbox.Text:match("%d+"), idbox.Text:match("%d+"))
  852. createText(scrollframe, game:service'MarketplaceService':GetProductInfo(idbox.Text:match("%d+")).Name.." /-ID-/ "..idbox.Text:match("%d+"), #scrollframe:children()+1, false, function() sound.SoundId = "rbxassetid://"..idbox.Text:match("%d+") end)
  853. scrollframe.CanvasSize = UDim2.new(0, 590, 0, 25*#SoundsList)
  854. idbox.Text = 'Insert ID here'
  855. end)
  856.  
  857. local minimize = Instance.new('TextButton', dragframe)
  858. minimize.Size = UDim2.new(0, 16, 0, 16)
  859. minimize.Position = UDim2.new(0, 582, 0, 1)
  860. minimize.BackgroundColor = BrickColor.new'Dark stone grey'
  861. minimize.Text = '-'
  862. minimize.TextYAlignment = 'Bottom'
  863. minimize.ZIndex = 3
  864. minimize.TextColor3 = Color3.new(1,1,1)
  865.  
  866. local maximize = Instance.new('TextButton', gui)
  867. maximize.Size = UDim2.new(0, 30, 0, 30)
  868. maximize.Position = UDim2.new(0, gui.AbsoluteSize.X-30, 0, gui.AbsoluteSize.Y-30)
  869. maximize.BackgroundColor = BrickColor.new'Dark stone grey'
  870. maximize.Text = '='
  871. maximize.Visible = false
  872. maximize.TextColor3 = Color3.new(1,1,1)
  873.  
  874. minimize.MouseButton1Down:connect(function()
  875. dragframe.Visible = false
  876. maximize.Visible = true
  877. end)
  878. maximize.MouseButton1Down:connect(function()
  879. dragframe.Visible = true
  880. maximize.Visible = false
  881. end)
  882.  
  883. for i,v in pairs(SoundsList) do
  884. createText(scrollframe, v.Name.." /-ID-/ "..v["ID"], i, false, function() sound:stop() sound.SoundId = "rbxassetid://"..v["ID"] sound.Pitch = v["Pitch"] end)
  885. end
  886.  
  887. while wait(0) do
  888. if CP.TextBounds.X > 470 then
  889. if CPframe.CanvasPosition == oldCPframePos and not (CPframe.CanvasPosition.X >= CP.TextBounds.X-471) then
  890. CPframe.CanvasPosition = CPframe.CanvasPosition + Vector2.new(1, 0)
  891. elseif (CPframe.CanvasPosition.X >= CP.TextBounds.X-471)then
  892. wait(3)
  893. CPframe.CanvasPosition = Vector2.new()
  894. wait(1)
  895. end
  896. oldCPframePos = CPframe.CanvasPosition
  897. end
  898. end
  899. end
  900.  
  901.  
  902. mouse.KeyDown:connect(function(k)
  903. if k == 'q' then
  904. activated = not activated
  905. if activated then
  906. BeginPlacingDisco()
  907. else
  908. RemoveDisco()
  909. end
  910. end
  911. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement