Advertisement
epicdude6951

Untitled

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