Tweening a Part's Transparency from the Bottom to the Top

Instead of the traditional tweening system where a part’s transparency changes as a unit, is there anyway to procedurally fade in a part from the bottom to the top. This is something similar to what I’m talking about:

https://static.wikia.nocookie.net/subnautica/images/6/61/Fabricator_4.gif/revision/latest/scale-to-width-down/250?cb=20170311154850

I was maybe thinking of breaking a part into sections but that would be performance costly and not tween that smoothly. Any ideas would be appreciated

You’d probably need control over the shader to do something like that. But you might be able to get similar results with a lot of hacking. Render the object in a ViewportFrame and use UIGradient on the frame.

I dont have a solution but I just wanted to pop in and say they are using shaders- something roblox does not have unfortunately.

The only thing I can think of (which im not sure is possible in roblox) is to use an editable mesh and update the UV mapping during runtime. But iirc editable mesh textures are limited.

1 Like