Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How to smoothly change color?

So, I have white object. And when (for example) player clicks button he changing color. Firstly object have white color, then smoothly going to yellow and then smoothly going to orange and then red (too smoothly).

What the easiest way to make this?

1 answer

✓ Accepted answer

TweenService provides an easy and idiomatic way to smoothly slide values of properties. See the API reference [1].

If by any chance you're using roblox-ts, you can use the tween library [2] to achieve an even more natural looking transition.

[1]: Source A [2]: Source B

1 comment

0

There's only about position, how can I change color I mean?

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