game.Players.PlayerAdded:connect(function(player) local image = script.Parent.SurfaceGui.Frame.ImageLabel image.Image = http://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&Format=Png&username=player end)
Image
, but didn’t wrap the link in quotes. To fix this:image.Image = "http://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&Format=Png&username="..player.Name
Instead of doing
image.Image = "http://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&Format=Png&username="..player.Name
Do this (Executed from a local script)
local getplayer = game.Players.LocalPlayer script.Parent.Image = game.Players:GetUserThumbnailAsync(getplayer.UserId, Enum.ThumbnailType.HeadShot, Enum.ThumbnailSize.Size100x100) -- // Format: (UserID, ThumbnailType, ThumbnailSize) -- // script.Parent.Image will be your image.
You can fool around with the settings if you want to.
Make sure to assign or create an imagelabel
first.