I'm trying to make the screen a dark red when their health is low or when they die. I have this so far;
player.CameraMode=Enum.CameraMode.LockFirstPerson
local blur=Instance.new("BlurEffect")
local cc=Instance.new("ColorCorrectionEffect")
uis.MouseIconEnabled=false
mouse.Move:connect(function()
blur.Size=7
blur.Parent=workspace.CurrentCamera
end)
mouse.Idle:connect(function()
wait(2)
blur.Size=0
end)
spawn(function() while wait() do
if humanoid.Health<15 then
cc.Enabled=true
cc.Parent=workspace.CurrentCamera
cc.TintColor=Color3.new(100/255,0,0)
elseif humanoid.Health<20 then
cc.Enabled=true
cc.Parent=workspace.CurrentCamera
cc.TintColor=Color3.new(95/255,0,0)
elseif humanoid.Health<25 then
cc.Enabled=true
cc.Parent=workspace.CurrentCamera
cc.TintColor=Color3.new(90/255,0,0)
elseif humanoid.Health>25 then
cc.Enabled=false
end
end
end)
