Would anyone know how to “tween” or animate ColorCorrection that smoothly transitions from one color to another, or just from default white to something?
I don’t really know if this is possible but I’ve seen other people do it with scripts and I can’t really figure out how to. I’m guessing TweenService.
This is the script that I’ve created so far:
local TweenService = game:GetService("TweenService")
local ColorCorrection = game.Lighting.ColorCorrection
local TweenInfo = TweenInfo.new(
1,
Enum.EasingStyle.Linear,
Enum.EasingDirection.Out
)
local Tween = TweenService:Create(ColorCorrection, TweenInfo, Goal)
wait(5)
Tween:Play()
How would I be able to set up my goal and be able to change ColorCorrection’s tintcolor and have it transition to that?
local Lighting = game:GetService("Lighting")
local TweenService = game:GetService("TweenService")
local ColorCorrection = Lighting.ColorCorrection
local Tweeninfo = TweenInfo.new(
1,
Enum.EasingStyle.Linear,
Enum.EasingDirection.Out
)
local Goal = {TintColor = Color3.fromRGB(0, 240, 160)} --Set the desired propertys
local Tween = TweenService:Create(ColorCorrection, Tweeninfo, Goal)
task.wait(5)
Tween:Play()
Goal should be a table with keys of the desired propertys, in this case we want the tween to change the TintColor, so I set the key TintColor equal to Color3.fromRGB(0, 240, 160)