You can write your topic however you want, but you need to answer these questions:
I want the lerp to make the frame’s transparency smooth fade from up to down.
I’ve looked at every corner of the DevForum and HiddenDevs, but no one helped or seemed to know.
I don’t ask for an entire script, but how it works.
This should achieve what you want. Getting the transparency of UIGradient and then Tweening it to 1.
If you want to have it tween to a different number changing the 1 in i/1 should work, but I have not tested it.
If you have any questions don’t be afraid to ask here or discord my username is PremiumJay.
local Transparency = UIGradient.Transparency.Keypoints[1].Value
local Time = .5--Change to what you need
for i = 0, 1, task.wait() / Time do
UIGradient.Transparency = NumberSequence.new(i/1)
task.wait()
end
you can also use the other guy’s suggestion with mathematical functions that the original tweens use
i think a better solution is to make a transparency gradient from pure transparent to no transparent, then change the offset property which is tweenable.
the offset property pushes the center of the gradient around, so you can make it fade smoothly between the two transparencies