How to get a circle image of a player?

Hello,
I am trying to get a circlular image of the player for a gui I am working on and I was just wondering how I could achieve this? I’ve tried the script below which gives me a square image. Thank you for your time.
(Example and script tested below)

Goal:

image

Script tested:

local ImageFrame = script.Parent
local userid = game.Players.LocalPlayer.UserId
ImageFrame.Image = "https://www.roblox.com/headshot-thumbnail/image?userId="..userid.."&width=420&height=420&format=png"

You probably have to convert the user id to a string using tostring()

Add UICorner inside the image, and set CornerRadius to 1, 0

image
image

3 Likes

Thank you so much. I realize this probably should have been a UI post but i thought it might have had something to do with the “https://www.roblox.com/headshot-thumbnail/image?userId=” part. Thank you regardless :))

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.