When I say ingame, I mean like stuff they put on in my game. I need a picture of their current avatar from whatever accessories they put on while playing my game. I am aware of GetUserThumbnailAsync and that is not what I am looking for.
Try using ViewportFrames. These can be used to display 3D objects in 2D GUI. You need to set up camera of the GUI instances properly and also put players characters in these frames. Yes, you can clone current players characters in the game and put the clones in these special frames. Let me know if you need more help or something.
Can I grab image data from the viewport?
EDIT: I suggest you follow the comment above me, as my method only gets the avatar of players on the web not in-game.
I showcased a step by step guide using GetUserThumbnailAsync and that was not what Battle wanted. I didn’t read the post very well! Good luck!
uhhhh, i’m sorry, but you didn’t quite get the assignment correctly 3:
When I say ingame, I mean like stuff they put on in my game. I need a picture of their current avatar from whatever accessories they put on while playing my game. I am aware of GetUserThumbnailAsync and that is not what I am looking for.
the problem with GetUserThumbnailAsync is that it returns the avatar as the version that’s visible on the Roblox webpage.
they might be doing a game in which your avatar has to be dressed up or something and they have to get a version of that avatar.
as @Spiderr12PL said, sadly, the only way to do this is doing the hard way of using ViewportFrames and cloning the player’s avatar into it. which might actually need way more work than what it seems because you also have to handle the camera inside these ViewportFrames
s 3:
As mentioned in my post, I said GetUserThumnailAsync was not what I was looking for. It only returns the avatar from the webpage, not ingame.
Oh alright! Yes, I agree with you I think that the version of the avatar won’t match the character now. So yes, I think the original poster should search more about viewports in Nameless’s post. Of course, my way is still valid but it is not the ideal approach to getting the image of the “in-game” avatar. Very sorry! I didn’t pay attention to the wording of this post. Thank you Hazel, for pointing that out (my brain was fried from being in the Forums for a while). Good luck to the original poster!
Can I get image data from the viewport? I have it setup already and a picture of the player is inside.
I am not aware of an existence of a feature like that. I might look into that later.
if you meant image data as in image IDs, i don’t think there’s currently a way to turn your viewport into an image which you can reuse later