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

How to make avatar head show on imagelabel?

Asked by 5 years ago

So i have a question. how to show only the head not the avatar thats all i want to ask pls help me!

script.Parent.ImageLabel.Image = "http://www.roblox.com/Thumbs/Avatar.ashx?x=420&y=420&username="..Game.Players.LocalPlayer.Name

thanks for your time

0
You mean like the picture at the top of the profile sturdy2004 110 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago

Make sure this script is in a LocalScript.

local player = game.Players.LocalPlayer
local userid = player.UserId
local label = script.Parent.ImageLabel

label.Image = ("https://www.roblox.com/bust-thumbnail/image?userId="..userid.."&width=420&height=420&format=png")

For other formats read this post:

https://devforum.roblox.com/t/new-image-endpoints-that-can-be-used-in-game/28182

Ad

Answer this question