Advertisement
Thefrozen106

Dj Script (Edited)

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