GUYS, SERIOUSLY STOP GIVING ME -1s ON ALL MY POSTS!
1 | b = script.Parent.Shop.setf.sanity.OFF |
2 | tcb = true |
3 | function c() |
4 | if tcb = = true then |
5 | game.Lighting.OutdoorAmbient = Color 3. new( 147 , 147 , 147 ) |
6 | end |
7 | end |
8 | b.MouseButton 1 Down: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.
1 | game.Lighting.OutdoorAmbient = Color 3. new( 147 / 255 , 147 / 255 , 147 / 255 ) |
You have to divide it by 255
1 | b = script.Parent.Shop.setf.sanity.OFF |
2 | tcb = true |
3 | function c() |
4 | if tcb = = true then |
5 | game.Lighting.OutdoorAmbient = Color 3. new( 147 / 255 , 147 / 255 , 147 / 255 ) |
6 | end |
7 | end |
8 | b.MouseButton 1 Down:connect(c) |