3 Parts - Player Image, Player Display Name and Player User Name

These are 3 separate scripts all modeled after:

Script 1 - Display Name - Make a text label show the players display name

Script 2 - User Name - Make a text label show the players User name

Script 3 - Player Image - Make a Image Label show the players avatar image

Please make these in separate code blocks as they are different codes.

Uh, do you need help with anything? Where’s your code?

local label = script.Parent.Text

label =

Thats the code for the 1st 2 the 3rd one I have no Idea what to do.

(local script)

To get the player’s name:

local playerName = game.Players.LocalPlayer.Name

To get their profile picture:

local image = game.Players:GetUserThumbnailAsync(game.Players.LocalPlayer.UserId, Enum.ThumbnailType.Headshot, Enum.ThumbnailSize.Size180x180)

To get their display name:

local displayName = game.Players.LocalPlayer.DisplayName

All of this can be in the same script, 3 different scripts isn’t necessary

5 Likes

For the profile picture I got any error.

Saying Headshot is not a valid type of …

local image = game.Players:GetUserThumbnailAsync(game.Players.LocalPlayer.UserId, Enum.ThumbnailType.Headshot, Enum.ThumbnailSize.Size180x180)

script.Parent.Image = image

Try Enum.ThumbnailType.HeadShot, I believe it’s worded that way instead

3 Likes