Why isn't my script working?

I have this script here for lighting but it doesn’t appear to be working, how can I fix this?

--Script--
game.Lighting.OutdoorAmbient = Color3{500, 0, 500}
game.Lighting.Ambient = Color3{50, 0, 50}
game.Lighting.ColorShift_Bottom = Color3{50, 0, 50}
game.Lighting.ColorShift_Top = Color3{50, 0, 50}
game.Lighting.Brightness = 2
game.Lighting.ExposureCompensatie = 3
game.Lighting.ClockTime = 0
--Script--

First, use the ``` pair to make the code easier to see.

I am not a proffessional scripter, but I think you are supposed to do
Color3.new.FromRGB(500, 0, 500)

You need to use Colors.new() I’m pretty sure
Or Color3.FromRGB()

Yeah, you need to use specify a colour 3 type. There’s color3.fromRGB(), color3.new, color3.fromHSV()
In this case, you would need to use color.fromRGB() which limits the colour of R, G & B by 255 or color3.new() which limits the each color3 value to 1. 500 is not possible through RGB or color3.new(), lower the value.

Also, you’ve spelt ExposureCompensation wrong, should be ExposureCompensation.

Ah okay (Misspelling was my friend haha).

Color3.new() or Color3.FromRGB() Color3.new() is a propertie of a textlabel, textbox, textbutton etc, you can select a color from a random textlabel and copy the 3 numbers.