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 6 years ago
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.

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

2 answers

Log in to vote
1
Answered by
Bazuxk 95
6 years ago
  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)

Ad
Log in to vote
0
Answered by 6 years ago
function touch()
    game.Lighting.Blur:remove()
end

script.Parent.Touched:connect(touch)

Answer this question