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

Is this a graphical glitch? Why is the ambient so bright?

I had a script...

game.Lighting.OutdoorAmbient = Color3.new(50,50,50)

And when I played it, it was so bright it burned my eyes. What was going on?

I had to do this:

game.Lighting.OutdoorAmbient = Color3.new(.25,.25,.25)

Which did exactly the same as

game.Lighting.OutdoorAmbient = Color3.new(0,0,0)

I've noticed this happening for a while but don't know why. What's going on?

1 answer

✓ Accepted answer

Color3.new's arguments range from 0 to 1, not 0 to 255 like shows in the properties menu.

(so you should use Color3.new(50/255, 50/255, 50/255) or almost exactly Color3.new(.2, .2, .2))


When you give it big numbers, it does odd things, usually resulting in one of the very bright colors (with at least one of r, g, b 255/255)


There should be a difference between 0 and 0.25, though. If you don't have GlobalShadows enabled, then OutdoorAmbient isn't used (and only Ambient is).

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