TheProNoob2004

Dj script [Normal Version]

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