I'm trying to make a smooth blur effect when a player dies but I want the blur to go away once the player has respawned so I used characteradded and now when I die the blur shows up but it doesn't go away :(
LOCAL SCRIPT
--local script inside of startergui
local player = script.Parent.Parent
repeat wait() until player.Character or player:FindFirstChild("Character")
local char = player.Character
local hum = char.Humanoid
local blur = game:GetService("Lighting").Blur
hum.Died:Connect(function()
for i = 0,25,2.5 do
blur.Size = i
wait()
end
end)
player.CharacterAdded:Connect(function()
print("hi")
local blur = game:GetService("Lighting").Blur
for i = 25,0,-2.5 do
blur.Size = i
wait()
end
end)
It also doesn't show any errors in the output not even my print("hi")

1 comment
oh its that problem? ok thank you for letting me know