Advertisement
Gememed

FE disco table

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