Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Blur is not going away using character added?

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 answer

CharacterAdded doesn't work on the client I believe. You'd have to use some type of loop

1 comment

0

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

This discussion is preserved as it was. New answers, comments, and votes are closed.