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

How do I change the color corrections tint color via script?

Asked by 4 years ago

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
0
Is this under lighting or a ColorCorrectionEffect/ AlphaY7 -3 — 4y
0
Yes koviddev 29 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago
Edited 3 years ago

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
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? koviddev 29 — 4y
0
Try Color3.fromRGB(r, g, b) instead TheBigBro122 427 — 4y
0
Thanks the RGB worked :) koviddev 29 — 4y
Ad

Answer this question