Advertisement
13242

Untitled

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