Changing the UIGradient Color using the script

My code:

GuiClone.Frame.RegimentHolder.UIGradient.Color = ColorSequence.new({
	ColorSequenceKeypoint.new(0, Color3.new(0.913725, 0.913725, 0.00784314)),
	ColorSequenceKeypoint.new(0.498, Color3.new(0.839216, 0.839216, 0)),
	ColorSequenceKeypoint.new(0.822, Color3.new(218, 204, 0)),
	ColorSequenceKeypoint.new(1, Color3.new(222, 215, 0))
})

Please someone help me I don’t know how do I change it my code isn’t working at all

Color3.new expects each parameter to be a number between 0 and 1, you have 2 Color3’s with values above that, causing an error

If you want it to be easier to read, I recommend converting all of them to Color3.fromRGB. If you want your fix, change the last 2 Color3.new to Color3.fromRGB

Thats it? If I change that did I guaranteed that It will fix the erro?

Yes, or use Color3.fromRGB .