Beam color not working with Color3Value

Hey, so I have a simple yet confusing problem?
I have a Beam where when you alter a Color3Value (Within the explorer) It would change the beam color to the color you place within the Color3Value inside the explorer (If I made sense). My issue is, I can’t get the beam to update to the color.

the line of code that tells the Beam to change to its chosen color within the Color3Value inside the explorer is this:

(ps. Beams = script.parent.Beam)

Beams.Color = ColorSequence.new(Color3.new(Color3Beam.Value))

the Beams is correctly routed to the Beam. The Color3Beam is correctly routed to the Color3Value within the explorer so idk what is wrong?

The Color3Value.Value is = to 1,1,0
but when you enter the game It (the script with the Beams.Color = etc etc) it just defaults the beam color to 0,0,0.

however if I change the (Color3Beam.Value)) to an actual color (1,1,1) it works…

No error. Only error I’m getting is from the line of code above.
when you click on (…(Color3Beam.Value)) it says "Invalid Arguments to Color3 constructor.

I hope I made sense? I can further explain if needed.

1 Like

the Color3.new takes 3 color values, you put 1 Color3 value in

1 Like

Ah, My apologies.

Sorry scripting is still rather new to me. If I may ask,
how would I add the other 2? by commas or?

Thank you regardless :slight_smile:

local ColorSequence = ColorSequence.new(
ColorSequenceKeypoint.new(timeinsecondskeypoint, Coolor3),
more
)

no like this

Ah so I would need to have 3 seperate numbers for each RGB, instead of a Color3Value yes?

(3 seperate NumberValues all linked together instead of 1 Color3Value)

check post ^
30 ch0rsssssssssssssssssss

if Color3Beam is a Color3 Value then you can do

local ColorSequence = ColorSequence.new(Color3Beam.Value)

what you were trying to do was construct a Color3 with a Color3 instead just use the Color3 that you have (Color3Beam.Value)

You need ColorSequenceKeypoints, I think

image
you can create a ColorSequence with 1 color

But you need KEYPOINTS, as shown, which you didn’t recognize

That’s not what their problem is though, their problem is that they tried constructed a Color3.new with Invalid arguments. Those arguments being a Color3 value

Edit: which you didn’t recognize

You’re mistake here is that you tried to create a Color3 out of a Color3, since Color3Beam.Value is already a Color3. This is how it should be:

Beams.Color = ColorSequence.new(Color3Beam.Value)

I hope this helps!

@elonrocket Sorry, I didn’t see your reply.

2 Likes

Yes that is exactly what I said. Thank you

Yes, this is it!
All of you thank you!
Sorry if I caused any issues but thank you!
:smiley: