How to clone my character into a viewport frame?

Hi guys! I just discovered viewport frames. I plan to make one where it can display my avatar (in R6) and be able to rotate it with mouse inputs. It would be a full body display with the character facing towards the front of the players screen. However, the problem is that I haven’t been able to display my character in the viewport at all. My setup is that I have a ScreenGui, and I have a local script and the viewport frame inside it. I’ve tried cloning my character and waiting for my humanoid but it still didn’t clone it (I don’t know why…?)
These are my debug statements I made:


I’ve also tried to clone an R6 model and apply a humanoid description but the my accessories don’t seem to clip onto me so it floats all over the screen. Turns out it’s only good for R15 models.

3 Likes

All player characters have their Archivable property set to false by default. This prevents them from being cloned.
→ You have to set the Archivable on each character to true via script when a player character is added

3 Likes

You’ll want to make use of CreateHumanoidModelFromUserId here. It returns the character model for a given UserId. From there you can parent it into the ViewportFrame accordingly.

3 Likes

You could try just putting a normal r6 rig in there, and applying the player’s humanoid description.

1 Like