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.
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.
Lighting and player's CurrentCamera.: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.
3 comments
This should be a local script and follow what Bazuxk said.
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.
Anchor the part and use localscript with FE so its local