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

How do I get R,G,B, values out of OutdoorAmbient seperately?

I'm trying to make a refresh button for the GUI that changes game's lighting and I don't know how to get RGB values out of OutdoorAmbient seperately.

infohub.Info.OutdoorAmbient.R.Text = game.Lighting.OutdoorAmbient.R
infohub.Info.OutdoorAmbient.G.Text = game.Lighting.OutdoorAmbient.G
infohub.Info.OutdoorAmbient.B.Text = game.Lighting.OutdoorAmbient.B	

This code does NOT work from my experience.

1 answer

✓ Accepted answer

Yes it does. Color3 values are represented in a 0-1 value, multiply the resulting values by 255.

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