joe201501

HOHOHO

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