Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Changing TintColor makes screen completely white, can someone help?

Asked by 4 years ago
Edited 4 years ago

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

Log in to vote
0
Answered by
Elyzzia 1294 Moderation Voter
4 years ago

Color3.new uses rgb values from 0-1

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

0
How do I do that? xDreamingLuma -3 — 4y
1
you just replace Color3.new in your script with Color3.fromRGB Elyzzia 1294 — 4y
0
oh xDreamingLuma -3 — 4y
0
thanks xDreamingLuma -3 — 4y
Ad

Answer this question