Changing Beam Color according to Data

So what I’m doing is basically trying to change the beam color to that of the value, currently, Color3Value is set to 255, 255, 255: For some reason, it’s not changing?

	if v:FindFirstChild("6") then
		for _, v2 in pairs(v:GetChildren()) do
			
			if v2:FindFirstChild("BeamOne") then
				v2.BeamOne.Color = ColorSequence.new(Color3.fromRGB(Data.SlashColor2.Value), Color3.fromRGB(Data.SlashColor2.Value))
			end	

			if v2:FindFirstChild("BeamTwo") then
				v2.BeamTwo.Color = ColorSequence.new(Color3.fromRGB(Data.SlashColor3.Value), Color3.fromRGB(Data.SlashColor3.Value))
			end

			if v2:FindFirstChild("BeamThree") then
				v2.BeamThree.Color = ColorSequence.new(Color3.fromRGB(Data.SlashColor4.Value), Color3.fromRGB(Data.SlashColor4.Value))
			end
		end			
	end

Try printing the Data.SlashColor.Value, or the Color3.fromRGB value. It may not be valid.

Honestly, just add print statements to all the possible values and ensure that they’re correct.

So I got it to work, but honestly, I don’t understand why I can’t put Data.SlashColor.Value inside of ColorSequence.new(Color3.fromRGB()). Is there a way to make it work?

You might need to separate them in their components of r g and b