Setting the color of a Beam

I’m trying to tween the color of a beam from solid red to solid green. Every time I try to do so, my tween goal line gives an error. I have tried rewriting this line countless times, but to no avail. Every combination and change I make fail. I’ve asked people on HiddenDevs, Rodevs, etc. But I still have no clue how to do it. So can somebody please fill in the blank for the code snippet below? I just need the Goals line. Thanks so much :slight_smile:

local goals = {Color = --green}

Which error are you getting?
What’s an example of the code you tried.

2 Likes

Beams use ColorSequence, which can’t be tweened normally. You can work around this by using Color3Values, and tweening those instead. Then you can loop set the colors:

EDIT: No idea why I blurred the top part, it’s probably pretty important to see what’s there, so here’s an unblurred image:

2 Likes
local greenColorGoal2 = {Color = ColorSequence.new(Color3.new(0.423529, 1, 0.635294))}

TweenService:Create property named ‘Color’ on object ‘Beam1’ is not a data type that can be tweened

Ah. You can’t tween ColorSequences, so you will instead need to use a rapid loop to change the colour.

1 Like

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