Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do you get a headShot of a specific player?

I have a script in ServerSriptService and StarterGui. Im trying to make a Gui that shows and says if a certain rank in a group joins the game. I have got it saying the person that joined but its not showing the head of the person.

Server Script Service

game.Players.PlayerAdded:Connect(function(player)
	
	if player:GetRankInGroup(5473485) >= 17 then
		local name = player.Name
		local id = player.UserId
		game.ReplicatedStorage.HRjoin:FireAllClients(name, id)
	end
end)

StarterGui

game.ReplicatedStorage.HRjoin.OnClientEvent:Connect(function(playerName, playerID)
	script.Parent.Frame.TextLabel.Text = "HR "..playerName.." has just joined the game!"
	
	script.Parent.Frame.ImageLabel.Image = "rbxthumb://type=AvatarHeadShot&id="..playerID.."&width=60&height=60"
end)

1 comment

0

Could you please be more specific.

1 answer

✓ Accepted answer

It should be https://www.roblox.com/headshot-thumbnail/image?userId="..playerID.."&width=420&height=420&format=png not "rbxthumb://type=AvatarHeadShot&id="..playerID.."&width=60&height=60"

This discussion is preserved as it was. New answers, comments, and votes are closed.