Where does it belong

  1. local Players = game:GetService(“Players”)
  • local player = Players.LocalPlayer
  • – Fetch the thumbnail
  1. local userId = player.UserId
  2. local thumbType = Enum.ThumbnailType.HeadShot
  3. local thumbSize = Enum.ThumbnailSize.Size420x420
  4. local content, isReady = Players:GetUserThumbnailAsync(userId, thumbType, thumbSize)
  • – Set the ImageLabel’s content to the user thumbnail
  1. local imageLabel = script.Parent
  2. imageLabel.Image = content
  3. imageLabel.Size = UDim2.new(0, 420, 0, 420)

So I’m trying to make a leaderboard that shows your picture by your name. But I don’t know if this would be a local script or a script and I don’t know where the script will go

If you want only the player to see it then it will be a local script inside of an image label that is inside of a screengui or a frame, it really depends on how you design your gui but you could also just change how the image label is referenced.

1 Like

And if I want all players to see I put a Regular script in

You need to change this if you need to use it in a server-script since you can’t use LocalPlayer on the server alone.

You’ll probably want to do what the first reply said.

I believe so, but I don’t really know.

Change it to what. Sorry I’m not really good at scripting

You could use game.Players.PlayerAdded and use there UserId to be added to the gui.

What’s wrong with the script I made. I got that script from

If you had it in a server script you would have to use that.

But I want all players to see everyones avtar picture

Then you use a server script and when a joins they are added to the leaderboard.