I want to make a script that knows when someone clicks and doesn’t have the enough money for something, the frame will change it’s color to red and fade out to the original color.
But i don’t know how to do that effect of colors. Every attempt to do this was bad and maybe outdated. How can i achieve this? Thanks for helping
So it depends what you want to change the colour of.
If you want to change the background of a UI element, you’d use BackgroundColor3.
If it’s the image color, then use ImageColor3:
Essentially, you can use TweenService to fade Colours in and out of the above properties. By making the tween reverse, you can tween it into red (RGB Value is 255,0,0) and then it’ll go back to the original color.
I’m currently just about to head to a new class, so when I’m back from that, I’ll DM you an example of code you can use!