How can I make a cube that moves the top and bottom surface separately?

Let me know if this is the wrong category

How can I make a cube that I can animate to move the top and bottom surfaces separately? I know that I have to use blender and add bones to a mesh, but it just isnt working correctly.

What I have in blender:
image

When I move and rotate the bottom bone:
image

This is what I want. But when I import it into studio, only 1 bone gets imported and moving the bone moves the whole cube.
How can I fix this?

This is what I want:
https://www.roblox.com/library/6934396411/Bone-Mesh-Deformation-Cube

But I need to rename the bones, and I need to do that in blender, but I cant because you cant download meshes as .fbx

Any help?

Got pretty close, but the whole mesh moves a little when I move the bones.


When far apart:

Can someone help me with this?

I figured it out, I just needed to set the face vertex groups to the correct bones. Works correctly now!

If anyone wants the .fbx file:
cube.fbx (21.7 KB)