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

How to smoothly change color?

Asked by 4 years ago
Edited 4 years ago

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

Log in to vote
1
Answered by
gskw 1046 Moderation Voter
4 years ago
Edited by Ziffixture 4 years ago

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

0
There's only about position, how can I change color I mean? ArtemVoronin0 171 — 4y
Ad

Answer this question