Tween gradient points?

Hi! I want to tween a gradient like in PToH where you hold “R” to restart. E.g.

Can anyone help?

1 Like

Looks like the same concept as something I’ve solved prior:

Instead of an ImageLabel, add the UIGradient to the TextLabel, it will work the same. You’d want the cutoff to be between the red and black colors rather than a transparency.

What the game is likely doing is tweening the UIGradient’s offset from its current position to 100% red, when R is pressed, and reversing to 0% red if R is let go; both of these events can be captured from UserInputService to see when input begins & ends with the R key.

1 Like

It wasn’t that easy, but still worked! I just had to tweak a few numbers. Thanks a bunch!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.