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

How do i get pplayer icon instead of whole body?

Asked by 6 years ago
while wait(3) do
    local player = game.Players.LocalPlayer
script.Parent.Player.Image = "http://www.roblox.com/thumbs/avatar.ashx?x=352&y=352&format=png&username=" ..player.Name
end

1 answer

Log in to vote
0
Answered by 6 years ago
Edited 6 years ago

Change the endpoint, so line 3 would be

script.Parent.Player.Image ="https://www.roblox.com/headshot-thumbnail/image?userId="..Userid.."&width=420&height=420&format=png"

Sorry if this doesn't work. New Scripter

Find more endpoints at http://wiki.roblox.com/index.php?title=Web_APIs

Ad

Answer this question