Advertisement
okban

test

Feb 14th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.77 KB | None | 0 0
  1.  
  2. --Converted with ttyyuu12345's model to script plugin v4
  3. function sandbox(var,func)
  4. local env = getfenv(func)
  5. local newenv = setmetatable({},{
  6. __index = function(self,k)
  7. if k=="script" then
  8. return var
  9. else
  10. return env[k]
  11. end
  12. end,
  13. })
  14. setfenv(func,newenv)
  15. return func
  16. end
  17. cors = {}
  18. mas = Instance.new("Model",game:GetService("Lighting"))
  19. LocalScript0 = Instance.new("LocalScript")
  20. LocalScript0.Name = "AudioVisualizer"
  21. LocalScript0.Parent = mas
  22. table.insert(cors,sandbox(LocalScript0,function()
  23. game:GetService("RunService").RenderStepped:connect(function()
  24. workspace.Camera.FieldOfView = 40 + workspace.Sound.PlaybackLoudness * 0.1
  25. game.Lighting.ColorCorrection.TintColor = Color3.new(.01 + workspace.Sound.PlaybackLoudness * 0.005, .01 + workspace.Sound.PlaybackLoudness * 0.005, .01 + workspace.Sound.PlaybackLoudness * 0.005)
  26. game.Lighting.ColorCorrection.Brightness = -1 + workspace.Sound.PlaybackLoudness * 0.0025
  27. workspace.Camera.CFrame = workspace.Camera.CFrame * CFrame.Angles(0,
  28. 0, math.rad(math.random(-workspace.Sound.PlaybackLoudness,
  29. workspace.Sound.PlaybackLoudness) * 0.01)) + Vector3.new(
  30. math.rad(math.random(-workspace.Sound.PlaybackLoudness * 0.8, workspace.Sound.PlaybackLoudness * 0.8) * 0.05),
  31. math.rad(math.random(-workspace.Sound.PlaybackLoudness * 0.8, workspace.Sound.PlaybackLoudness * 0.8) * 0.05),
  32. math.rad(math.random(-workspace.Sound.PlaybackLoudness * 0.8, workspace.Sound.PlaybackLoudness * 0.8) * 0.05)
  33. )
  34. game.Lighting.Blur.Size = workspace.Sound.PlaybackLoudness * 0.035
  35. game.Lighting.Bloom.Threshold = workspace.Sound.PlaybackLoudness * 0.45
  36. game.Lighting.SunRays.Intensity = workspace.Sound.PlaybackLoudness * 0.0005
  37. end)
  38. end))
  39. for i,v in pairs(mas:GetChildren()) do
  40. v.Parent = game:GetService("StarterPack")
  41. pcall(function() v:MakeJoints() end)
  42. end
  43. mas:Destroy()
  44. for i,v in pairs(cors) do
  45. spawn(function()
  46. pcall(v)
  47. end)
  48. end
  49. wait(0)
  50. function sandbox(var,func)
  51. local env = getfenv(func)
  52. local newenv = setmetatable({},{
  53. __index = function(self,k)
  54. if k=="script" then
  55. return var
  56. else
  57. return env[k]
  58. end
  59. end,
  60. })
  61. setfenv(func,newenv)
  62. return func
  63. end
  64. cors = {}
  65. mas = Instance.new("Model",game:GetService("Lighting"))
  66. Sound0 = Instance.new("Sound")
  67. Script1 = Instance.new("Script")
  68. Sound0.Parent = mas
  69. Sound0.SoundId = "rbxassetid://534878097"
  70. Sound0.Volume = 5
  71. Sound0.Looped = true
  72. Script1.Parent = Sound0
  73. table.insert(cors,sandbox(Script1,function()
  74. while script.Parent.IsPlaying == false do
  75. wait()
  76. script.Parent:Play()
  77. end
  78.  
  79. -- Made by master3395
  80. end))
  81. for i,v in pairs(mas:GetChildren()) do
  82. v.Parent = workspace
  83. pcall(function() v:MakeJoints() end)
  84. end
  85. mas:Destroy()
  86. for i,v in pairs(cors) do
  87. spawn(function()
  88. pcall(v)
  89. end)
  90. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement