Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Converted with ttyyuu12345's model to script plugin v4
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- LocalScript0 = Instance.new("LocalScript")
- LocalScript0.Name = "AudioVisualizer"
- LocalScript0.Parent = mas
- table.insert(cors,sandbox(LocalScript0,function()
- game:GetService("RunService").RenderStepped:connect(function()
- workspace.Camera.FieldOfView = 40 + workspace.Sound.PlaybackLoudness * 0.1
- game.Lighting.ColorCorrection.TintColor = Color3.new(.01 + workspace.Sound.PlaybackLoudness * 0.005, .01 + workspace.Sound.PlaybackLoudness * 0.005, .01 + workspace.Sound.PlaybackLoudness * 0.005)
- game.Lighting.ColorCorrection.Brightness = -1 + workspace.Sound.PlaybackLoudness * 0.0025
- workspace.Camera.CFrame = workspace.Camera.CFrame * CFrame.Angles(0,
- 0, math.rad(math.random(-workspace.Sound.PlaybackLoudness,
- workspace.Sound.PlaybackLoudness) * 0.01)) + Vector3.new(
- math.rad(math.random(-workspace.Sound.PlaybackLoudness * 0.8, workspace.Sound.PlaybackLoudness * 0.8) * 0.05),
- math.rad(math.random(-workspace.Sound.PlaybackLoudness * 0.8, workspace.Sound.PlaybackLoudness * 0.8) * 0.05),
- math.rad(math.random(-workspace.Sound.PlaybackLoudness * 0.8, workspace.Sound.PlaybackLoudness * 0.8) * 0.05)
- )
- game.Lighting.Blur.Size = workspace.Sound.PlaybackLoudness * 0.035
- game.Lighting.Bloom.Threshold = workspace.Sound.PlaybackLoudness * 0.45
- game.Lighting.SunRays.Intensity = workspace.Sound.PlaybackLoudness * 0.0005
- end)
- end))
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = game:GetService("StarterPack")
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
- wait(0)
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- Sound0 = Instance.new("Sound")
- Script1 = Instance.new("Script")
- Sound0.Parent = mas
- Sound0.SoundId = "rbxassetid://534878097"
- Sound0.Volume = 5
- Sound0.Looped = true
- Script1.Parent = Sound0
- table.insert(cors,sandbox(Script1,function()
- while script.Parent.IsPlaying == false do
- wait()
- script.Parent:Play()
- end
- -- Made by master3395
- end))
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = workspace
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement