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

My remove blur effect on touch is not working, how to fix?

function touch()
	game.Workspace.Lightning.Blur:remove()
end

script.Parent.Touched:connect (touch)

Rather than the blur effect disappearing when I touch the part, it automatically disappears as soon as i press play. Thank you in advance.

3 comments

0

This should be a local script and follow what Bazuxk said.

0

the part is probably touching something from the beginning. Either move the part or make a script that will only function if a Character touches it. But otherwise, Bazuxk's script should work just fine.

0

Anchor the part and use localscript with FE so its local

2 answers

✓ Accepted answer
  1. Blur effect only works on service Lighting and player's CurrentCamera.
  2. :remove() is deprecated, use :Destroy() instead.
-- script inside part
script.Parent.Touched:Connect(function()
	game.Lighting.Blur:Destroy()
end)
 
function touch()
    game.Lighting.Blur:remove()
end

script.Parent.Touched:connect(touch)

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