How can I make a characters face appear on a viewportframe

Hi I was wondering how I can make it when a character(model) is cloned into a viewport frame and characters face becomes an image.

Can you explain more? I don’t think I understand what you’re trying to do. What I understood is that you want to make the character’s face an image?

Actually, I think I understand now

You should use Instance.ChildAdded to detect when the model is added to the Viewport Frame, so

local ViewportFrame = (Reference Viewport Frame)

Then you can detect when the model is added with a function
ViewportFrame.ChildAdded:Connect(function(object)

If you want you can detect if it is actually a character model
if object:FindFirstChild("Humanoid") then

Now we will get the player’s face ID
local ID = object.Head.face.Texture

Now you can do whatever you want with the ID, like putting it on a UI or something
imagelabel.ImageId = ID

Now finally we need to close the function and if statement
end end)

I couldn’t really understand what you wanted so this is basically the most of what I understood you needed.

1 Like