GUYS, SERIOUSLY STOP GIVING ME -1s ON ALL MY POSTS!
b = script.Parent.Shop.setf.sanity.OFF tcb = true function c() if tcb == true then game.Lighting.OutdoorAmbient = Color3.new(147,147,147) end end b.MouseButton1Down:connect(c)
I did Color3.new
, but script still doesn't work. And, also, I can't use the dev console, so I made one myself and I found this error: C:/Users/R****/AppData/Local/Roblox/Versions/version-71b693:172: attempt to index local 'RbxGui' (a nil value)
and Error loading core script StarterScript
The Color3 constructor takes numbers from 0 to 1. You have to divide each number by 255 in order for it to work.
game.Lighting.OutdoorAmbient = Color3.new(147/255,147/255,147/255)
You have to divide it by 255
b = script.Parent.Shop.setf.sanity.OFF tcb = true function c() if tcb == true then game.Lighting.OutdoorAmbient = Color3.new(147/255,147/255,147/255) end end b.MouseButton1Down:connect(c)