Can anyone help me with this color changing part?

Okay, so basically I am working on my own Vibe game. I am a Builder, not a Scripter. But still, i’d be very grateful if someone would help me with this.

So, in ProjectSupreme’s Outfit Contest (which is pretty funny to say the least), the colors smoothly switch between Red and White only, in a rainbow wave sort of way, but NOT rainbow.
Watch the video linked below to see the colors in action.

Again, i’d be very grateful if someone would tell me how to make this color sequence.

  • Sincerely,
    hellccaat
1 Like

It is most likely using a TweenService to manipulate for such sequences. Perhaps it’s sine-based method with a repetition set -1. The manipulation changes the HSV, saturation especially.

2 Likes

Alrighty, I am not gonna give out code but here are some tips:
Use the BrickColor most likely to change color found here ----
https://education.roblox.com/en-us/resources/properties-and-brickcolor
This should help.

As @anon81993163 said, use the TweenService to change color that way.
Also, don’t post a long video like that without giving the time you want us to look at and the Part you are talking about. Luckily I could see what you were talking about the runway light parts fairly early in the video.
Here’s a link to the developer.roblox site that can help you. There is a sample script that moves a Part and changes the color, but you can take the movement sections of the script out.

You can TweenService, or you can use Color3:lerp(); either ways works.
Check this resource out, hopefully you get a better idea.

1 Like

Along with what everyone else is saying, TweenService is your best friend.

However, I am assuming that you might need to change the color of the light as well while the colors are changing. For that, you need to use coroutines, which allows concurrency in Lua. This way, you can have multiple components of a colored light part change its color simultaneously.

Here are some sources to help you how to implement coroutines in your code: