This is a local script that activates the blur effect once the client reaches a certain amount of health. From then on the I planned on increasing the intensity or "Size" of the blur as the health lowers and once the player dies I used the Died event to remove the effect. Two problems: As the health decreases the intensity only decreases instead of increasing and the second problem is that each time the character dies, the previous instance stays and another is put in place.
local plr = game.Players.LocalPlayer
local char = plr.Character or plr.CharacterAdded:wait()
local effect = Instance.new("BlurEffect", workspace.CurrentCamera)
effect.Enabled = false
local Humanoid = char:WaitForChild("Humanoid")
Humanoid.Changed:connect(function()
if Humanoid.Health <= 75 then
effect.Enabled = true
effect.Size = 20 + (Humanoid.Health)
end
end)
game:GetService('Players').PlayerAdded:connect(function(player)
player.CharacterAdded:connect(function(character)
character:WaitForChild("Humanoid").Died:connect(function()
workspace.CurrentCamera:ClearAllChildren()
end)
end)
end)

2 comments
Thanks for the input, just saw this.
Alright it works properly and the effect is removed on death. Thanks again.