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

Can I load a player's image on a part?

Asked by 5 years ago

Is there some way that I can load the character image of a player that touches a certain brick in the game in a decal or image in a part in that same game? Maybe there's some kind of function for it like GetPlayerImage or so?

0
Yes, there is a way. User#19524 175 — 5y
1
I've seen it but have idk how OBenjOne 190 — 5y
0
You asked a simple question that needs a simple answer. Finding the method is your job. User#19524 175 — 5y
1
I want to know too OBenjOne 190 — 5y
0
Hint: Method of the Players service. User#19524 175 — 5y

1 answer

Log in to vote
1
Answered by
xPolarium 1388 Moderation Voter
5 years ago
Edited 5 years ago

This loads the character image into an ImageLabel.

local ImageLabel = script.Parent.ImageLabel

ImageLabel.Image = "http://www.roblox.com/Thumbs/Avatar.ashx?x=500&y=500&username="..game.Players.LocalPlayer.Name

You can use a BillboardGui to show it on a part. You can also use this link to open up the image of the character on your browser provided with the right username.

Ad

Answer this question