Problem with changing ColorShiftTop and OutdoorAmbient with a script

Hello there, so I have been having a problem with scripting lighting lately.
Here is the script I have been using

local Lighting = game:GetService("Lighting")
	Lighting.OutdoorAmbient = Color3.new(165, 87, 4)
        Lighting.ColorShift_Top = Color3.new(253 , 89 , 11)

What is the problem with it you may ask?
When it changes the Color of Outdoor Ambient and ColorShiftTop, it doesn’t exactly turn into the colors I put in the script.

Instead OutdoorAmbient Changes to (42075, 22185, 1020)
And ColorShiftTop Changes to (64515, 22695, 2805)

For some reason, they turn ridiculously high, and I have no idea why.

I hope you can inform me what I am doing wrong fellow reader.

Thanks for your time.

local Lighting = game:GetService("Lighting")

Lighting.OutdoorAmbient = Color3.new(165, 87, 4)
Lighting['ColorShift_Top'] = Color3.new(253, 89, 11) -- You had accidentally placed
-- -spaces in Line 4 between the commas and may have referenced it incorrectly.

It may also be a Studio bug. Is any other script trying to change those lighting properties?

Nope, its the only script in the experience

this is what happens If I use the script you gave me
it weirdly turns the baseplate and players red

Check output. Does it say anything?

Nothing, Just an auto recovery file.

Did you restart Roblox Studio yet?

i thought u meant Color3.fromRGB not Color3.new

1 Like

I already restarted Studio about 6 times.

Wait, so am I suppose to use Color.fromRGB and not Color3.new?

1 Like

Oh, Color3.new() took your RGB values to super high levels because it converted them. Change .new to .fromRGB. Color3.new is 1,1,1 white, Color3.fromRGB is 255,255,255 white.

2 Likes

yes, you meant that instead of using .new because it uses a different “format”

1 Like

oh ok, Im gonna try that and see if it works.

It worked! Thanks you guys.
Final output.
Screenshot 2022-03-21 074233

3 Likes