Advertisement
RBLPlayer

Untitled

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