Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Camera blurring not working on playbackloudness?

Asked by 5 years ago
Edited 5 years ago

I did put this LOCALSCRIPT in: Game > StarterPlayer > StarterPlayerScripts

local sound = game.Workspace.Sound
local fire = game.Lighting.Blur

while true do
    if sound.IsPlaying then
        local number = (sound.PlaybackLoudness / 100) * (2 + sound.Volume)
        fire.Enabled = true
        fire.Size = NumberSequence.new(number)
    else
        fire.Enabled = false
    end
    wait()
end

It supposed to be blurring the camera but it's not even changing the value of the size, it's in lightning any idea why?

Oh, btw I have an error: Players.JustSxript.PlayerScripts.LocalScript:7: attempt to index local 'fire' (a number value) Maybe one of you guys can help me?

Thanks.

0
I copied your script and I don't get any errors .-. since you're making it in a local script inside a starter player tho use WaitForChild on variables other then that only mistake I can think of is that you're not playing the sound? or do you have that in another script?.. TopBagon 109 — 5y

Answer this question