Advertisement
SniperZazzy

Untitled

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