So I made this hoping that I could effect the new blur effect when someone is dying (losing health) so the blur would get blurrier. but when they heal the number gets higher, it should lower so the blur is not visible, and should get blurrier when they are losing health. But i can't get the math right.
local Player = game.Players.LocalPlayer
repeat wait() until game.Players.LocalPlayer.Character ~= nil
local Char = Player.Character
local Blur = Instance.new("BlurEffect")
Blur.Parent = game.Workspace.CurrentCamera
Blur.Size = 0
local humanoid = game.Players.LocalPlayer.Character.Humanoid
humanoid.HealthChanged:connect(function(health)
print("")
print(math.abs(health*health/health/-50))
--Blur.Size = health*health/health/-99
end)
