Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 7 years ago
1function touch()
2    game.Workspace.Lightning.Blur:remove()
3end
4 
5script.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.

0
This should be a local script and follow what Bazuxk said. User#5423 17 — 7y
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. oilsauce 196 — 7y
0
Anchor the part and use localscript with FE so its local Timmerman73 85 — 7y

2 answers

Log in to vote
1
Answered by
Bazuxk 95
7 years ago
  1. Blur effect only works on service Lighting and player's CurrentCamera.
  2. :remove() is deprecated, use :Destroy() instead.
1-- script inside part
2script.Parent.Touched:Connect(function()
3    game.Lighting.Blur:Destroy()
4end)
Ad
Log in to vote
0
Answered by 7 years ago
1function touch()
2    game.Lighting.Blur:remove()
3end
4 
5script.Parent.Touched:connect(touch)

Answer this question