Advertisement
Guest User

Untitled

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