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

Why Doesn't DepthOfField Work On My Showcase?

I have a showcase that would go perfectly with depthoffield, So I made a script that would wait 5 seconds and enable DepthOfField, (Which is in lighting)

wait(5)
game.Lighting.DepthOfField.Enable = true

(This was a local script)

And it did not work at all, not even a error in the Output. I even tried going in the actual roblox game, put my graphics to the highest, but none worked.

Does anyone know how to fix this?

2 answers

✓ Accepted answer

Change this:

wait(5)
local Lighting = game:GetService("Lighting")
Lighting.DepthOfField.Enabled = true -- change Enable to Enabled, there is not a property called enable in DepthOfField, only Enabled.

If this is a solution, please mark this as one then! Remember: some effects in lighting/Camera will not work because the Graphics Quality is not as high, remember to higher your graphics for best effect if it is low.

make sure it's game.Lighting.DepthOfField.Enabled = true

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