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

Can someone help me with color3 please?

I am trying to make my OutdoorAmbient go darker for a game theme via script, but it keeps giving me an error when I do it. Can someone help me fix this issue? My code is:

game.Lighting.OutdoorAmbient = Color3.new(100,100,100)
wait()
game.Lighting.OutdoorAmbient = Color3.new(90,90,90)
wait()
game.Lighting.OutdoorAmbient = Color3.new(80,80,80)
wait()
game.Lighting.OutdoorAmbient = Color3.new(70,70,70)
wait()
game.Lighting.OutdoorAmbient = Color3.new(60,60,60)
wait()
game.Lighting.OutdoorAmbient = Color3.new(50,50,50)
wait()
game.Lighting.OutdoorAmbient = Color3.new(40,40,40)

1 answer

✓ Accepted answer
game.Lighting.OutdoorAmbient = Color3.new(100/255,100/255,100/255)
wait()
game.Lighting.OutdoorAmbient = Color3.new(90/255,90/255,90/255)
wait()
game.Lighting.OutdoorAmbient = Color3.new(80/255,80/255,80/255)
wait()
game.Lighting.OutdoorAmbient = Color3.new(70/255,70/255,70/255)
wait()
game.Lighting.OutdoorAmbient = Color3.new(60/255,60/255,60/255)
wait()
game.Lighting.OutdoorAmbient = Color3.new(50/255,50/255,50/255)
wait()
game.Lighting.OutdoorAmbient = Color3.new(40/255,40/255,40/255)

I've forgotten to do what you forgot plenty of times.

1 comment

0

Thanks so much!

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