How to get players head profile for a Image GUI

Hello, i have a script that makes a image one of your friends on ur list but its there whole body, how would i get there head only?

local Player = game.Players.LocalPlayer
local Friends = Player:GetFriendsOnline(6)
local Temp = game.ReplicatedStorage.Template
local TPS = game:GetService("TeleportService")

for i,v in pairs(Friends) do
	if v.PlaceId == 6803595647 then
		local NewFrame = Temp:Clone()
		NewFrame.PlayerName.Text = v.UserName
		NewFrame.Parent = script.Parent.ScreenGui.Frame.ScrollingFrame
		NewFrame.PlayerImage.Image = "http://www.roblox.com/Thumbs/Avatar.ashx?x=150&y=150&Format=Png&username="..v.UserName
		if v.LastLocation then
			NewFrame.GameName.Text = v.LastLocation
			NewFrame.Join.MouseButton1Down:Connect(function()
				TPS:TeleportToPlaceInstance(v.PlaceId, v.UserName, Player)
			end)
		end
	end
end

this is the line that makes it the whole body.

		NewFrame.PlayerImage.Image = "http://www.roblox.com/Thumbs/Avatar.ashx?x=150&y=150&Format=Png&username="..v.UserName
1 Like

https://developer.roblox.com/en-us/api-reference/function/Players/GetUserThumbnailAsync

https://www.roblox.com/headshot-thumbnail/image?userId= INSERT USERID HERE &width=420&height=420&format=png

1 Like