How can I change the transparency of a UIGradient (NumberSequence) to 1?

when i try to change the Number Sequence in to have a transparency value of 1 in script it only makes the sides transparent and not the entire ui. does someone else know why this is?

local keypoints = {
				NumberSequenceKeypoint.new(0, 1),
				NumberSequenceKeypoint.new(1, 0)
			}
		
			local transparencySequence = NumberSequence.new(keypoints)
			
			element.UIGradient.Transparency = transparencySequence

element.UIGradient.Rotation = 90

According to the docs, the Transparency of UIGradient must be a number.

<code>UIGradient.Transparency</code> : number

Returns or sets the transparency of the UIGradient. The transparency of the UIGradient is a number between 0.0 and 1.0, with 0.0 being fully opaque and 1.0 being fully transparent. Note that this property affects only the UIGradient; any children of the UIGradient remain unaffected. You can use this property to fade the UIGradient in or out.

I think you're looking for something like this: local keypoints = { NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(1, 1) }

local opacitySequence = NumberSequence.new(keypoints)

element.UIGradient.Transparency = 1
element.UIGradient.Opacity = opacitySequence
element.UIGradient.Rotation = 90