Advertisement
Alex325

FOV Visualizer (By Alex325)

Jul 6th, 2018
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.89 KB | None | 0 0
  1. -- :D
  2.  
  3. local plr = game.Players.LocalPlayer
  4. local char = plr.Character
  5. local plrgui = plr.PlayerGui
  6. local cam = game.Workspace.CurrentCamera
  7. local gui = Instance.new("ScreenGui")
  8. gui.Parent = plrgui
  9. local frame = Instance.new('Frame',gui)
  10. frame.Size = UDim2.new(0,242,0,100)
  11. local textbox = Instance.new('TextBox',frame)
  12. textbox.TextScaled = true
  13. textbox.Size = UDim2.new(1,0,1,0)
  14. textbox.Font = ("SourceSans")
  15. textbox.Text = ("Music ID Here")
  16. local button = Instance.new('TextButton',frame)
  17. button.TextScaled = true
  18. button.Size = UDim2.new(1,0,1,0)
  19. button.Font = ("SourceSans")
  20. button.Text = ("Play")
  21. button.Position = UDim2.new(0,0,1,0)
  22. local textbox2 = Instance.new('TextBox',frame)
  23. textbox2.Text = ("1")
  24. textbox2.Size = UDim2.new(1,0,1,0)
  25. textbox2.TextScaled = true
  26. textbox2.Font = ("SourceSans")
  27. textbox2.Position = UDim2.new(1,0,1,0)
  28. local label = Instance.new('TextLabel',frame)
  29. label.Text = ("Control Pitch")
  30. label.Size = UDim2.new(1,0,1,0)
  31. label.TextScaled = true
  32. label.Font = ("SourceSans")
  33. label.Position = UDim2.new(1,0,0,0)
  34. local textbox3 = Instance.new('TextBox',frame)
  35. textbox3.Text = ("5")
  36. textbox3.Size = UDim2.new(1,0,1,0)
  37. textbox3.TextScaled = true
  38. textbox3.Font = ("SourceSans")
  39. textbox3.Position = UDim2.new(2,0,1,0)
  40. local label2 = Instance.new('TextLabel',frame)
  41. label2.Text = ("Control Volume")
  42. label2.Size = UDim2.new(1,0,1,0)
  43. label2.TextScaled = true
  44. label2.Font = ("SourceSans")
  45. label2.Position = UDim2.new(2,0,0,0)
  46.  
  47. local music = Instance.new('Sound',gui)
  48. music.Looped = true
  49. music.Volume = 5
  50. music.MaxDistance = 10000
  51.  
  52. button.MouseButton1Click:connect(function()
  53. music.SoundId = ("rbxassetid://"..textbox.Text)
  54. music:Play()
  55. end)
  56.  
  57. while true do
  58. music.PlaybackSpeed = textbox2.Text
  59. music.Volume = textbox3.Text
  60. game:GetService('RunService').RenderStepped:wait()
  61. local sizer = music.PlaybackLoudness/15 + 70
  62. cam.FieldOfView = sizer,1,sizer
  63. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement