How To Insert A Model/Part Into A Gui Frame

I am trying to make an Emote GUI which shows NPCs playing an emote in it

However, I came to realize that you cannot play an animation on an image label/image button. I also seems to know that games like BedWars (Kit Gui), Jailbreak(Garage Gui) involves part or model in it
rotating or playing an animation. Is there any script or service that make a part/model playing an animation or rotating in a Gui.

I tried to look for answers in the internet but I found nothing which is related so I came here asking this question

As for more detail, I am making an Emote Gui which has a Dummy/Noob NPC playing the emote in it as an animation in the Gui. So basically, I am trying to make a part/model that will act like a Gui ImageLabel/ImageButton except you can play animation or rotate it. Lastly, I am not asking for a complete script but you can put a complete script if you are kind enough. It will also be helpful if you can redirect me to related DevForum posts or tutorials from other website.

Have a nice day, Bye

1 Like

You use viewport frames or something like that, don’t remember the name.

(thsnks triz for reminding)

You could use ViewportFrame to show animable characters on screen. Using ViewportFrame requires a Camera object and you must assign it by doing Viewport.Camera = Camera. There’s this Roblox article about how to use ViewportFrame. Be advised that changing the parts inside them can impact the user’s performance depending on how many parts you are displaying and the amount of time you’re updating them.

4 Likes