User avatar icon in chat

hi, i’m new to forum. so, i wanna make like when you type message in chat, there will be your avatar icon near nickname. is there way to do this?

You can do this by creating a custom chat UI.

1 Like

In the normal chat then no, but in a custom chat you can. Heres how:

local PlayersService = game:GetService("Players")
local Icon = script.Parent

Icon.Image = PlayersService:GetUserThumbnailAsync(PlayersService.LocalPlayer.UserId, Enum.ThumbnailType.Headshot, Enum.ThumbnailSize.Size420x420)

(assuming you have parented the script to an Imagelabel)

1 Like

okay i will try this. thank you!

1 Like

OH! tysm! it’s just what i wanted! ure a life saver

Make sure to solve my post as a solution if it helped so users that find this post can know where to look!

1 Like