Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Camera not blurring based on playbackloudness?

Hello, I have a hard question, I think lol, I am trying to make the camera blurred based on playbackloudnes (PBL) I made this question 8 days ago but it wasn't being answered, I have the Link: https://scriptinghelpers.org/questions/87556/camera-blurring-not-working-on-playbackloudness

Script here:

local sound = game.Workspace.Sound
local fire = game.Lighting.Blur ---Blur in the lightning that will activate when its called

while true do
    if sound.IsPlaying then
        local number = (sound.PlaybackLoudness / 100) * (2 + sound.Volume)
        fire.Enabled = true ---Called to activate blur
        fire.Size = NumberSequence.new(number) ---Makes the blur size based on the playbackloudness
    else
        fire.Enabled = false   ---Disable blur
    end
    wait()
end

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

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, again.

3 comments

0

replace NumberSequence.new(number) with number

0

i will test that out

0

Omg thank you, you could put it in the answers i'll accept it.

1 answer

✓ Accepted answer

Replace the

fire.Size = NumberSequence.new(number)

with

fire.Size = number

The Size of the Blur is a float (i.e. a number) not a NumberSequence

This discussion is preserved as it was. New answers, comments, and votes are closed.