Tween Beam Color

Hey,
Does anyone know the best way to have a beam change color with tweens?
Thanks!

I’m pretty sure that you can’t, but if you could it probably works like this:

Tween:Create(beam, TweenInfo.new(1, Enum.EasingStyle.Sine, Enum.EasingDirection.Out), {Color = color})

Edit:
I almost forgot to include this, if the code above errors or something, you should try ColorSequence

1 Like

sadly, didn’t seem to work. Thanks for the help though!

1 Like

Sort of.

Beams use a Color3Sequence which cannot be tweened.

HOWEVER. It is possible to tween elements of that Color3Sequence and achieve a sort of tween.

You will need to make several Color3 Value instances then tween those values.

If you want to tween the position of them you will have to include Number values.

Then in your RenderStepped event simply update the Color sequence based on the current Color3 values.

There is an excellent module to be made here. Unfortunately, I don’t have the time or dedication to make one , ┐(´ー`)┌

3 Likes