rektv25

Untitled

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