Slowly turning a model into another model?

Hey there! So, i want to make a model slowly turn into another model.

For example we turn a blue part into a green part from top to bottom slowly (like a tween or smth)

As always, i don’t need a script, i just need an understanding on how i could make this because i dont even think this is possible.

Thanks!

Here is how I would go about this.

I would make an ordered table of the parts. Ordering them by the lowest Y value. Then I would iterate through the table knowing that it’s ordered from lowest parts to the highest parts.

Create 3 parts in workspace. Name them “A”, “B”, “C”.

Move the parts around to test sort function. then from there you make the cool transition!

Here is some code to get you started


local parts = {
	workspace.A,
	workspace.B,
	workspace.C
}

-- returns lowest Y value first
table.sort(parts,function(valueA, valueB)
	return valueA.Position.Y < valueB.Position.Y
end)

print(parts)
1 Like