Trying to grab a player's roblox pfp and their userid so other players can teleport to, message, block, and report them

So i’m making a sandbox hangout/rp game and i’ve been trying to figure out how to get players who are not running the client into a list of buttons on a screen GUI that corresponds to each player. This is so the player corresponding to a client can request to teleport, message, block, or report them on a whim.

I’m trying to figure this out on my own for learning purposes, so please do not spoonfeed, but pointers and hints are welcome. If you need any more information don’t hesitate to ask. Thanks!

I forgot to note that i need to update this list every time a player joins and leaves.

a tad unclear on what exactly youre asking but a handy guide to getting images based on profile or asset thumbnails with URLs:
they will all start with https://www.roblox.com/
and are followed by either headshot-thumbnail, asset-thumbnail, bust-thumbnail, or outfit-thumbnail.
then, they will need an Id in the form of image?asset-Id, image?userId, or image?userOutfitId. for example, /image?userId=121529392/
lastly, define the width, height, and format of the image with &width=200&height=200&format=200

so the final product of the above is https://www.roblox.com/bust-thumbnail/image?userId=121529392&width=200&height=200&format=png and displays this image:
image

here is a more complete forum post on the topic

1 Like

Players.PlayerAdded:Connect() and Players.PlayerRemoving:Connect() will work for that.

1 Like

forgot to mention that i need it on a local script, but i do use that for an event that only activates when the player is added. which part is unclear?