Cannot change EnvironmentDiffuseScale

Hello! I have been trying to change the EnvironmentDiffuseScale and EnvironmentSpecularScale Via scripting

I have tried doing this via scripting, local script and script both but I cannot do it

I tried game.Lighting.EnvironmentDiffuseScale = 0 but it wont work, can anyone help?

local lighting = game:GetService("Lighting")

lighting.EnvironmentDiffuseScale = 0
lighting.EnvironmentSpecularScale = 0

You need to use GetService() to use the lighting service. Then you can edit its various properties.

Hope this helps!

2 Likes