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

Changing TintColor makes screen completely white, can someone help?

script.Parent.Touched:connect(function(hit)

game.Lighting.ColorCorrection.TintColor = Color3.new (102, 102, 102)

end)

When I ran the game, and hit the block, the screen just went completely white. Is there a better way of doing this that I can learn? (I'm also new to coding so I don't know where to look for help)

1 answer

✓ Accepted answer

Color3.new uses rgb values from 0-1

what you want to use is Color3.fromRGB, which uses rgb values from 0-255

4 comments

0

How do I do that?

1

you just replace Color3.new in your script with Color3.fromRGB

0

oh

0

thanks

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