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