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 make a certain color phase to another with Color3?

1 answer

✓ Accepted answer

Like ForeverBrown says, using TweenService may be of use to you. Here's a sample of how it'd look in your case:

local TweenService = game:GetService("TweenService")
local part = workspace.Part -- at the starting color

local goal = { Color = Color3.fromRGB(92, 100, 138) } -- list of properties the part finishes with
local info = TweenInfo.new(3) -- you can use the wiki to edit this.

local tween = TweenService:Create(part, info, goal)
tween:Play()

Here's the article.

2 comments

0

Thanks, any way to loop it to make it from the first color to the second color, then go back?

0

Nevermind, just realised the answer.

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