Hello, I’m writing a code that makes ambient.color3 decrease by 5 every time the block is clicked, but it only goes down once. Like from 138 to 133 and then won’t. I wrote the code here. I’m looking forward to your help.
local R,G,B = 138,138,138;
R, G, B = R-5, G-5, B-5
workspace.Part.ClickDetector.MouseClick:Connect(function()
game:GetService(“Lighting”).Ambient = Color3.fromRGB(R,G,B)
end)