Advertisement
samuelrichter66

supr

May 23rd, 2019
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.36 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.  
  153.  
  154. --Draw something, put your sound id in, and watch the light show!--
  155. --Enjoy lads.--
  156. Player=game:GetService("Players").LocalPlayer
  157. Character=Player.Character
  158. Character.Humanoid.Name = "noneofurbusiness"
  159. hum = Character.noneofurbusiness
  160. LeftArm=Character["Left Arm"]
  161. LeftLeg=Character["Left Leg"]
  162. RightArm=Character["Right Arm"]
  163. RightLeg=Character["Right Leg"]
  164. Root=Character["HumanoidRootPart"]
  165. Head=Character["Head"]
  166. Torso=Character["Torso"]
  167. Neck=Torso["Neck"]
  168. mouse = Player:GetMouse()
  169. removeuseless = game:GetService("Debris")
  170. soundIsPlaying = false
  171. number = 0
  172. stop = false
  173. flatt = false
  174. standingg = true
  175. tf = 0
  176. idrewsomething = false
  177. tab2={}
  178. tab={}
  179. blue = false
  180. red = true
  181. green = false
  182. drawingallowed = true
  183. MseGuide = true
  184. RunSrv = game:GetService("RunService")
  185. RenderStepped = game:GetService("RunService").RenderStepped
  186.  
  187. local HEADLERP = Instance.new("ManualWeld")
  188. HEADLERP.Parent = Head
  189. HEADLERP.Part0 = Head
  190. HEADLERP.Part1 = Head
  191. HEADLERP.C0 = CFrame.new(0, -1.5, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  192.  
  193. OrgnC0 = Neck.C0
  194. local movelimbs = coroutine.wrap(function()
  195. while RunSrv.RenderStepped:wait() do
  196. TrsoLV = Torso.CFrame.lookVector
  197. Dist = nil
  198. Diff = nil
  199. if not MseGuide then
  200. print("l")
  201. else
  202. local _, Point = Workspace:FindPartOnRay(Ray.new(Head.CFrame.p, mouse.Hit.lookVector), Workspace, false, true)
  203. Dist = (Head.CFrame.p-Point).magnitude
  204. Diff = Head.CFrame.Y-Point.Y
  205. local _, Point2 = Workspace:FindPartOnRay(Ray.new(LeftArm.CFrame.p, mouse.Hit.lookVector), Workspace, false, true)
  206. Dist2 = (LeftArm.CFrame.p-Point).magnitude
  207. Diff2 = LeftArm.CFrame.Y-Point.Y
  208. HEADLERP.C0 = CFrame.new(0, -1.5, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  209. Neck.C0 = Neck.C0:lerp(OrgnC0*CFrame.Angles((math.tan(Diff/Dist)*1), 0, (((Head.CFrame.p-Point).Unit):Cross(Torso.CFrame.lookVector)).Y*1), .1)
  210. end
  211. end
  212. end)
  213. movelimbs()
  214.  
  215. godmode = coroutine.wrap(function()---- so you don't get killed by fucking random things
  216. while true do
  217. hum.MaxHealth = math.huge
  218. wait(0.0000001)
  219. hum.Health = math.huge
  220. wait()
  221. end
  222. end)
  223. godmode()
  224. ff = Instance.new("ForceField", Character)
  225. ff.Visible = false
  226.  
  227. coroutine.wrap(function()
  228. mouse.Button1Down:connect(function()
  229. if drawingallowed then
  230. fo = false
  231. while true do
  232. if fo then break end
  233. idrewsomething = true
  234. brick = Instance.new("Part",Character)
  235. brick.Anchored = true
  236. brick.Material = "Neon"
  237. brick.CanCollide = false
  238. brick.BrickColor = BrickColor.new("Really black")
  239. brick.Size = Vector3.new(1,1,1)
  240. brick.CFrame = CFrame.new(mouse.Hit.p)
  241. table.insert(tab2,brick)
  242. light = Instance.new("PointLight", brick)
  243. light.Color = brick.BrickColor.Color
  244. light.Range = 0
  245. light.Enabled = true
  246. light.Shadows = true
  247. light.Brightness = 0
  248. table.insert(tab,light)
  249. wait()
  250. end
  251. end
  252. end)
  253. end)()
  254.  
  255. coroutine.wrap(function()
  256. mouse.Button1Up:connect(function()
  257. if drawingallowed then
  258. fo = true
  259. end
  260. end)
  261. end)()
  262.  
  263. ---GUI---
  264.  
  265. screenGui = Instance.new("ScreenGui")
  266. screenGui.Parent = script.Parent
  267.  
  268. frame = Instance.new("Frame")
  269. frame.Parent = screenGui
  270. frame.Position = UDim2.new(0, 8, 0, 225)
  271. frame.Size = UDim2.new(0, 250, 0, 200)
  272. frame.BackgroundColor3 = BrickColor.new("White").Color
  273. frame.BackgroundTransparency = .5
  274.  
  275. textButton = Instance.new("TextButton")
  276. textButton.Parent = screenGui
  277. textButton.Position = UDim2.new(0, 12, 0, 400)
  278. textButton.Size = UDim2.new(0, 50, 0, 10)
  279. textButton.BackgroundColor3 = BrickColor.new("Really red").Color
  280. textButton.Text = "Red"
  281.  
  282. textButton.MouseButton1Down:connect(function()
  283. red = true
  284. green = false
  285. blue = false
  286. rainbow = false
  287. smooth = false
  288. end)
  289.  
  290. textButton2 = Instance.new("TextButton")
  291. textButton2.Parent = screenGui
  292. textButton2.Position = UDim2.new(0, 75, 0, 400)
  293. textButton2.Size = UDim2.new(0, 50, 0, 10)
  294. textButton2.BackgroundColor3 = BrickColor.new("Really blue").Color
  295. textButton2.Text = "Blue"
  296.  
  297. textButton2.MouseButton1Down:connect(function()
  298. red = false
  299. green = false
  300. blue = true
  301. rainbow = false
  302. smooth = false
  303. end)
  304.  
  305. textButton3 = Instance.new("TextButton")
  306. textButton3.Parent = screenGui
  307. textButton3.Position = UDim2.new(0, 138, 0, 400)
  308. textButton3.Size = UDim2.new(0, 50, 0, 10)
  309. textButton3.BackgroundColor3 = BrickColor.new("Lime green").Color
  310. textButton3.Text = "Green"
  311.  
  312. textButton3.MouseButton1Down:connect(function()
  313. red = false
  314. green = true
  315. blue = false
  316. rainbow = false
  317. smooth = false
  318. end)
  319.  
  320. textButton4 = Instance.new("TextButton")
  321. textButton4.Parent = screenGui
  322. textButton4.Position = UDim2.new(0, 201, 0, 400)
  323. textButton4.Size = UDim2.new(0, 50, 0, 10)
  324. coroutine.wrap(function()
  325. while true do
  326. textButton4.BackgroundColor3 = BrickColor.Random().Color
  327. wait(.05)
  328. end
  329. end)()
  330. textButton4.Text = "Rainbow"
  331.  
  332. textButton4.MouseButton1Down:connect(function()
  333. red = false
  334. green = false
  335. blue = false
  336. rainbow = true
  337. smooth = false
  338. end)
  339.  
  340. textBox = Instance.new("TextBox")
  341. textBox.Parent = screenGui
  342. textBox.Position = UDim2.new(0, 58, 0, 280)
  343. textBox.Size = UDim2.new(0, 150, 0, 20)
  344. textBox.BackgroundColor3 = BrickColor.new("White").Color
  345. textBox.Text = "Type Sound Id here"
  346.  
  347. form = Instance.new("TextButton")
  348. form.Parent = screenGui
  349. form.TextScaled = true
  350. form.Position = UDim2.new(0, 114, 0, 305)
  351. form.Size = UDim2.new(0, 40, 0, 20)
  352. form.BackgroundColor3 = BrickColor.new("White").Color
  353. form.Text = "Up"
  354.  
  355. form.MouseButton1Down:connect(function()
  356. if standingg then
  357. standingg = false
  358. flatt = true
  359. form.Text = "Flat"
  360. elseif flatt then
  361. flatt = false
  362. standingg = true
  363. form.Text = "Up"
  364. end
  365. end)
  366.  
  367. coroutine.wrap(function()
  368. while wait() do
  369. sid = textBox.Text
  370. end
  371. end)()
  372.  
  373. playbutton = Instance.new("TextButton")
  374. playbutton.Parent = screenGui
  375. playbutton.Position = UDim2.new(0, 58, 0, 305)
  376. playbutton.Size = UDim2.new(0, 50, 0, 20)
  377. playbutton.BackgroundColor3 = BrickColor.new("White").Color
  378. playbutton.Text = "Play"
  379.  
  380. playbutton.MouseButton1Down:connect(function()
  381. if not idrewsomething then return end
  382. if soundIsPlaying then
  383. sound1:Remove()
  384. sound1 = Instance.new("Sound", Character)
  385. sound1.Looped = true
  386. sound1.SoundId = "http://www.roblox.com/asset/?id=" .. sid
  387. sound1:Play()
  388. else
  389. soundIsPlaying = true
  390. vol.Text = 1
  391. pitch.Text = 1
  392. sound1 = Instance.new("Sound", Character)
  393. coroutine.wrap(function()
  394. while soundIsPlaying do
  395. wait()
  396. sound1.Volume = svol
  397. end
  398. end)()
  399. sound1.Looped = true
  400. coroutine.wrap(function()
  401. while soundIsPlaying do
  402. sound1.Pitch = pitchh
  403. wait()
  404. end
  405. end)()
  406. sound1.SoundId = "http://www.roblox.com/asset/?id=" .. sid
  407. sound1:Play()
  408. coroutine.wrap(function()
  409. while sound1.IsPlaying and soundIsPlaying do
  410. for i,v in pairs(tab) do
  411. v.Enabled = true
  412. v.Brightness = sound1.PlaybackLoudness/19
  413. v.Range = sound1.PlaybackLoudness/15
  414. if red then
  415. v.Color = Color3.new(sound1.PlaybackLoudness/200, 0,0)
  416. elseif blue then
  417. v.Color = Color3.new(0, 0,sound1.PlaybackLoudness/200)
  418. elseif green then
  419. v.Color = Color3.new(0, sound1.PlaybackLoudness/200,0)
  420. elseif rainbow then
  421. v.Color = brick.BrickColor.Color
  422. end
  423. end
  424. wait()
  425. end
  426. end)()
  427. while sound1.IsPlaying and soundIsPlaying do
  428. workspace.CurrentCamera.FieldOfView = 70 - sound1.PlaybackLoudness/100
  429. bcol = brick.BrickColor
  430. for _,v in pairs(tab2) do
  431. if standingg then
  432. v.Size = Vector3.new(1, sound1.PlaybackLoudness/math.random(10,25), 1)
  433. elseif flatt then
  434. v.Size = Vector3.new(sound1.PlaybackLoudness/math.random(10,25), 1, 1)
  435. end
  436. if red then
  437. v.BrickColor = BrickColor.new(Color3.new(sound1.PlaybackLoudness/200, 0,0))
  438. elseif blue then
  439. v.BrickColor = BrickColor.new(Color3.new(0,0,sound1.PlaybackLoudness/200))
  440. elseif green then
  441. v.BrickColor = BrickColor.new(Color3.new(0,sound1.PlaybackLoudness/200,0))
  442. elseif rainbow then
  443. v.BrickColor = BrickColor.Random()
  444. end
  445. end
  446. wait()
  447. end
  448. end
  449. end)
  450.  
  451. local stopbutton = Instance.new("TextButton")
  452. stopbutton.Parent = screenGui
  453. stopbutton.Position = UDim2.new(0, 158, 0, 305)
  454. stopbutton.Size = UDim2.new(0, 50, 0, 20)
  455. stopbutton.BackgroundColor3 = BrickColor.new("White").Color
  456. stopbutton.Text = "Stop"
  457.  
  458. vol = Instance.new("TextBox")
  459. vol.Parent = screenGui
  460. vol.Position = UDim2.new(0, 58, 0, 330)
  461. vol.Size = UDim2.new(0, 50, 0, 20)
  462. vol.BackgroundColor3 = BrickColor.new("White").Color
  463. vol.Text = "Volume"
  464.  
  465. coroutine.wrap(function()
  466. while wait() do
  467. svol = vol.Text
  468. end
  469. end)()
  470.  
  471. local remove = Instance.new("TextButton")
  472. remove.Parent = screenGui
  473. remove.Position = UDim2.new(0, 108, 0, 370)
  474. remove.Size = UDim2.new(0, 50, 0, 20)
  475. remove.BackgroundColor3 = BrickColor.new("White").Color
  476. remove.Text = "Clean"
  477.  
  478. pitch = Instance.new("TextBox")
  479. pitch.Parent = screenGui
  480. pitch.Position = UDim2.new(0, 158, 0, 330)
  481. pitch.Size = UDim2.new(0, 50, 0, 20)
  482. pitch.BackgroundColor3 = BrickColor.new("White").Color
  483. pitch.Text = "Pitch"
  484.  
  485. coroutine.wrap(function()
  486. while wait() do
  487. pitchh = pitch.Text
  488. end
  489. end)()
  490.  
  491. pitchup = Instance.new("ImageButton")
  492. pitchup.Parent = screenGui
  493. pitchup.Position = UDim2.new(0, 131, 0, 327)
  494. pitchup.BackgroundTransparency = 1
  495. pitchup.Size = UDim2.new(0, 25, 0, 25)
  496. pitchup.Image = "rbxassetid://29563813"
  497.  
  498. pitchup.MouseButton1Down:connect(function()
  499. if soundIsPlaying then
  500. pitch.Text = pitch.Text + .1
  501. end
  502. end)
  503.  
  504. pitchdown = Instance.new("ImageButton")
  505. pitchdown.Parent = screenGui
  506. pitchdown.Rotation = 180
  507. pitchdown.Position = UDim2.new(0, 211, 0, 327)
  508. pitchdown.BackgroundTransparency = 1
  509. pitchdown.Size = UDim2.new(0, 25, 0, 25)
  510. pitchdown.Image = "rbxassetid://29563813"
  511.  
  512. pitchdown.MouseButton1Down:connect(function()
  513. if soundIsPlaying then
  514. pitch.Text = pitch.Text - .1
  515. end
  516. end)
  517.  
  518. remove.MouseButton1Down:connect(function()
  519. if idrewsomething then
  520. if soundIsPlaying then
  521. soundIsPlaying = false
  522. workspace.CurrentCamera.FieldOfView = 70
  523. woosh = Instance.new("Sound",Character)
  524. woosh.Volume = 2
  525. woosh.SoundId = "rbxasstid://215402014"
  526. woosh:Play()
  527. sound1:Stop()
  528. pitch.Text = "Pitch"
  529. vol.Text = "Volume"
  530. removeuseless:AddItem(woosh,2)
  531. for _,v in pairs(tab2) do
  532. v:Remove()
  533. end
  534. idrewsomething = false
  535. elseif not soundIsPlaying then
  536. soundIsPlaying = false
  537. woosh = Instance.new("Sound",Character)
  538. woosh.Volume = 2
  539. woosh.SoundId = "rbxasstid://215402014"
  540. woosh:Play()
  541. for _,v in pairs(tab2) do
  542. v:Remove()
  543. end
  544. idrewsomething = false
  545. end
  546. end
  547. end)
  548.  
  549. local day = Instance.new("TextButton")
  550. day.Parent = screenGui
  551. day.Position = UDim2.new(0, 50, 0, 370)
  552. day.Size = UDim2.new(0, 50, 0, 20)
  553. day.BackgroundColor3 = BrickColor.new("Bright yellow").Color
  554. day.Text = "Day"
  555.  
  556. day.MouseButton1Down:connect(function()
  557. daytime = true
  558. nighttime = false
  559. turnon = Instance.new("Sound",Character)
  560. turnon.SoundId = "rbxassetid://858896518"
  561. turnon.Volume = 1
  562. turnon.Pitch = 1.05
  563. turnon:Play()
  564. removeuseless:AddItem(turnon,2)
  565. coroutine.wrap(function()
  566. while daytime do
  567. game.Lighting.TimeOfDay = 12
  568. game.Lighting.GlobalShadows = true
  569. game.Lighting.Ambient = Color3.fromRGB(10,10,10)
  570. game.Lighting.Brightness = 1
  571. wait()
  572. end
  573. end)()
  574. end)
  575.  
  576. local night = Instance.new("TextButton")
  577. night.Parent = screenGui
  578. night.Position = UDim2.new(0, 165, 0, 370)
  579. night.Size = UDim2.new(0, 50, 0, 20)
  580. night.BackgroundColor3 = BrickColor.new("Really black").Color
  581. night.TextColor = BrickColor.new("White")
  582. night.Text = "Night"
  583.  
  584. night.MouseButton1Down:connect(function()
  585. daytime = false
  586. nighttime = true
  587. turnoff = Instance.new("Sound",Character)
  588. turnoff.SoundId = "rbxassetid://858896518"
  589. turnoff.Volume = 1
  590. turnoff.Pitch = .9
  591. turnoff:Play()
  592. removeuseless:AddItem(turnoff,2)
  593. coroutine.wrap(function()
  594. while nighttime do
  595. game.Lighting.TimeOfDay = 0
  596. game.Lighting.GlobalShadows = false
  597. game.Lighting.Ambient = Color3.new(0,0,0)
  598. game.Lighting.Brightness = 0
  599. wait()
  600. end
  601. end)()
  602. end)
  603.  
  604. volumeup = Instance.new("ImageButton")
  605. volumeup.Parent = screenGui
  606. volumeup.Position = UDim2.new(0, 29, 0, 327)
  607. volumeup.BackgroundTransparency = 1
  608. volumeup.Size = UDim2.new(0, 25, 0, 25)
  609. volumeup.Image = "rbxassetid://29563813"
  610.  
  611. volumeup.MouseButton1Down:connect(function()
  612. if soundIsPlaying then
  613. vol.Text = vol.Text + 1
  614. end
  615. end)
  616.  
  617. volumedown = Instance.new("ImageButton")
  618. volumedown.Parent = screenGui
  619. volumedown.Rotation = 180
  620. volumedown.Position = UDim2.new(0, 111, 0, 327)
  621. volumedown.BackgroundTransparency = 1
  622. volumedown.Size = UDim2.new(0, 25, 0, 25)
  623. volumedown.Image = "rbxassetid://29563813"
  624.  
  625. Supr14 = Instance.new("ImageLabel")
  626. Supr14.Parent = screenGui
  627. Supr14.Rotation = 0
  628. Supr14.Position = UDim2.new(0, 13, 0, 222)
  629. Supr14.BackgroundTransparency = 1
  630. Supr14.Size = UDim2.new(0, 240, 0, 60)
  631. Supr14.Image = "rbxassetid://1815697653"
  632.  
  633. volumedown.MouseButton1Down:connect(function()
  634. if soundIsPlaying then
  635. vol.Text = vol.Text - 1
  636. end
  637. end)
  638.  
  639. stopbutton.MouseButton1Down:connect(function()
  640. if idrewsomething then
  641. if soundIsPlaying then
  642. sound1:Remove()
  643. soundIsPlaying = false
  644. workspace.CurrentCamera.FieldOfView = 70
  645. pitch.Text = "Pitch"
  646. vol.Text = "Volume"
  647. for i,v in pairs(tab) do
  648. v.Enabled = false
  649. end
  650. for i = 1, 10 do
  651. for _,v in pairs(tab2) do
  652. v.BrickColor = BrickColor.new("Really black")
  653. v.Size = v.Size - Vector3.new(0,15,0)
  654. end
  655. wait()
  656. end
  657. end
  658. end
  659. end)
  660.  
  661. print("Drawing visualiser!, Made by Supr14")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement