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

Why Doesn't DepthOfField Work On My Showcase?

Asked by 3 years ago

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

Log in to vote
1
Answered by 3 years ago
Edited 3 years ago

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.

Ad
Log in to vote
0
Answered by
raid6n 2196 Moderation Voter Community Moderator
3 years ago

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

Answer this question