Advertisement
Kaemi

Untitled

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