How to put a texture in a viewportframe

Hey, I’m currently making a script which places a part with a texture inside of a viewport but for some reason the texture doesn’t appear.

Is there somethign customly I need to do with the texture or does viewports not support textures? Honestly I feel like thats realyl hard to believe because so many things rely on textures to function so not rendering in viewports would be unacceptable.

Do you guys have any ideas?

Can you upload the code here? I think I have some sort of an idea of whats causing it

Its fine I just ended up getting a meshpart. VIewportframes dont support textures i think. Im pretty sure it only supports meshpart textures

All good, good luck for the rest!