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 change the color corrections tint color via script?

This is what I have tried so far there is probably an obvious mistake here somewhere lol.

while true do
	script.Parent.Brightness = 1
	script.Parent.TintColor = Color3.new(170, 85, 255)
	wait(3)
	script.Parent.Brightness = 1
	script.Parent.TintColor = Color3.new(85, 85, 255)
	wait(3)
	script.Parent.Brightness = 1
	script.Parent.TintColor = Color3.new(255, 170, 255)
	wait(3)	
end

2 comments

0

Is this under lighting or a ColorCorrectionEffect/

0

Yes

1 answer

✓ Accepted answer

Seems light your trying to use a Script under game.Lighting. Scripts do not run under this I will suggest having the script in game.ServerScriptService and then in the script have a variable going to the ColorCorrectionEffect

Ex:

local colorCorrection = game.Lighting:FindFirstChildOfClass("ColorCorrectionEffect")

while true do
    colorCorrection.Brightness = 1
    colorCorrection.TintColor = Color3.fromRGB(170, 85, 255)
    wait(3)
    colorCorrection.Brightness = 1
    colorCorrection.TintColor = Color3.fromRGB(85, 85, 255)
    wait(3)
    colorCorrection.Brightness = 1
    colorCorrection.TintColor = Color3.fromRGB(255, 170, 255)
    wait(3) 
end

3 comments

0

Hey, It worked kinda. Maybe it's something I messed up but the color just becomes really bright white and when I'm in the test I check the color corrections tint and it goes to like the thousands any advice?

0

Try Color3.fromRGB(r, g, b) instead

0

Thanks the RGB worked :)

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