Hello, I’m trying to change the brightness using a proximity prompt. First I run this code from a tool using a localscript. (I’ve tried using a normal script instead, but I got the same error)
script.Parent.Activated:Connect(function()
game.Lighting.Brightness = 1
end)
After that I run this code from a normal script attached to a proximityprompt.
script.Parent.V.Triggered:Connect(function()
game.Lighting.Brightness = 3 --The default is 3
end)
After repeating this, the brightness won’t change back to 3. I don’t understand why it works the first time, but then it no longer works.