Color Changing Decal?

I have a cool idea of changing certain parts of an image to a different color, but I’m not sure if there’s a way to script it in Roblox.

Proof of concept: https://gyazo.com/ed520a2ba75613808a087c099b9f724d

As one can see, it’s possible to do it using the Roblox built-in settings, but I’m not sure if I can script a while-true loop for image colors. I’ve seen people script bricks that can transition colors using frame parts and such, but never with decals. Is it possible?

If not, my second idea of doing this was to simply layer the same decal, but this time with a small color-changing brick behind the eye parts and making the eye part transparent so the brick behind it can be seen.

Although it works, this is not an ideal solution to my problem. If anyone has a way of solving this, let me know. Thanks! :slight_smile:

2 Likes

You could use TweenService to tween the ImageColor property.

4 Likes

…I don’t see how that would help. OP is asking how to smoothly change the ImageColor from one color to another.

1 Like

Oh sorry I didn’t read it right, I thought he wanted to change the color of the Decal with a script but yes, it is better to use TweenService for that,

local TweenService = game:GetService("TweenService")

local Decal = ["path to decal"]

TweenService:Create(Decal, TweenInfo.new(1 --[[Transaction time in number]]), {Color3 = Color3.fromRGB(Red, Green, Blue)}):Play()
1 Like

Mission is successful, thank you everyone! :slight_smile:
Link: https://gyazo.com/04cbd046c8a81ce0a83c83eb0eafed50