local human = game.Players.LocalPlayer.Character.Humanoid
local blur = game.Lighting.Blur
human.HealthChanged:connect(function(h)
if (h <= 10) and (h > 0) then
blur.Size = 11
elseif (h <=30) and (h > 10) then
blur.Size = 5
elseif (h >30) then
blur.Size = 0
end
So I'm a new scripter. I'm trying to make a script to make screen blurry depending on LocalPlayer's health. This is being accessed from a LocalScript, FE on. This is what I was told to do on the forums. It did not work. Please correct it!
EDIT: ANSWER AND COMMENT HAVE NOT YET FIXED ISSUE!

8 comments
You need to end the health changed event and add ) because of line 4. So line 12 should be "end)".
Even after that it still didn't work :c
Try wrapping the .HealthChanged event in a .CharacterAdded event. It might not connect when the character dies. Any errors?
Beggining scripter, how is this done. Just write out the new line of code.
I assume you want each player to have a blur independant of the others?
Yes
I'm working on it.
Alright thanks.