Can't put a Roblox Character Headshot on a Part

Hello, I am working on a small project for a game. This is a little board that sets infront of a player at a desk, that shows their rank, and what department they are apart of. The Question I need answered, is I want a picture of the Picture of a Roblox Character to show on a part. I want to make it so I have to manually input it from a script side, but I dont know how.

How can I make a roblox character headshot appear on a part using a players UserID?

This is a local script, put in StarterGui, aimed at a decal in/on a block named pic.

local Player = game:GetService("Players").LocalPlayer
local userid = Player.UserId
local image = game.Players:GetUserThumbnailAsync(userid,Enum.ThumbnailType.HeadShot, Enum.ThumbnailSize.Size150x150)
workspace.Pic.Decal.Texture = image
1 Like

Could you list what things I should have on the part? For example,

Part, Decal, Script, Ect. Whatever that may be

Just a Decal inside a part, will do that, with that script

1 Like