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

How do I set a image UI to a player's face?

Asked by
Mystdar 352 Moderation Voter
8 years ago

I know how to operate and change the image in an ImageLabel, however what are the in-built functions to access a player's character's image/face.

1 answer

Log in to vote
0
Answered by 8 years ago

There are no in built functions, I believe, but you can set them like this:

local fullimage = "http://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&Format=Png&username=" ..PlayerName

local headshot = "http://www.roblox.com/headshot-thumbnail/json?userId=" ..UserId.. "&width=180&height=180"
0
How can I get a player's ID from their name? Mystdar 352 — 8y
0
game.Players:GetUserIdFromNameAsync(PlayerName) TheDeadlyPanther 2460 — 8y
Ad

Answer this question