Advertisement
Mediakiller7Cool

Dj

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