Greetings developers!
I’ve been trying to make a script to change the blur like in Mocap Dance where as the song gets louder or deeper, the screen will be more or less blured.
This is the script i did and i don’t know why it’s not working :
game:GetService("RunService").RenderStepped:connect(function()
workspace.Camera.FieldOfView = 70 + workspace.Sound.PlaybackLoudness * 0.007
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 = -0.65 + workspace.Sound.PlaybackLoudness * 0.0007
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.08, workspace.Sound.PlaybackLoudness * 0.08) * 0.05),
math.rad(math.random(-workspace.Sound.PlaybackLoudness * 0.08, workspace.Sound.PlaybackLoudness * 0.08) * 0.05),
math.rad(math.random(-workspace.Sound.PlaybackLoudness * 0.08, workspace.Sound.PlaybackLoudness * 0.08) * 0.05)
)
game.Lighting.Blur.Size = workspace.Sound.PlaybackLoudness * 0.1
end)
I tried with different values instead of 0.1
too
Thank you everyone for helping