Cant update UiGradint transparency in script

so i am trying to make an effect with ui UiGradint transparency but why i cant update the keypoints?
this is the script

local UiGradint = script.Parent.Transparency
local tweenService = game:GetService("TweenService")
local tweeninfo = TweenInfo.new(4,Enum.EasingStyle.Linear,Enum.EasingDirection.InOut,-1)
print(UiGradint.Keypoints[2]) --  0.985 1 0 
task.wait(2)
UiGradint.Keypoints[2] = {0.5 , 0 ,0}
print(UiGradint.Keypoints[2]) -- 0.985 1 0 

so in the first print it print 0.985 1 0
and in the next print it print the same 0.985 1 0 tho i updated?

1 Like