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

How do i prevent glowing fog with Color3?

the first part works fine, but then the last one just turns the fog neon:

repeat
wait(5)
game.Lighting.FogEnd = 250
game.Lighting.FogStart = 0
game.Lighting.FogColor = Color3.new(0,0,0)
wait(5)
game.Lighting.FogEnd = 1500
game.Lighting.FogStart = 250
game.Lighting.FogColor = Color3.new(255, 255, 255)
until false

1 comment

0

What do you mean by “neon”? Do you mean the colour or the material?

1 answer

✓ Accepted answer

It is because you are using Color3.new() and not Color3.fromRGB().

Try:

FogColor = Color3.fromRGB(0,0,0)
-- and
FogColor = Color3.fromRGB(225,225,225)

3 comments

0

Bonus: Color3.new is defined by a value from 0 to 1 while Color3.fromRGB is defined by 0 to 255

0

^ Exactly.

0

thanks a lot!

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