Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I properly add in a player's headshot image?

Asked by 6 years ago

I've been trying to recreate the HUD system from GTA V, and I was trying to sort out how do I add in the player's headshot image so it basically represents the character on the lower right of the screen.

This is what I've done so far:

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

I've gotten a bit rusty on my scripting skills so I could use a refresher course

Answer this question