Basically,i’m trying make a hud than shows the player roblox photo on a image label,but somehow i cant clone the image label template? what is hapening?
Explorer: Screenshot by Lightshot
local idplayerlocal = game.Players.LocalPlayer.UserId
local template = script.Parent.template
game.Players.PlayerAdded:Connect(function(v)
--if v.UserId ~= idplayerlocal then
local idtemp = v.UserId
print(idtemp)
local Players = game:GetService("Players")
local thumbType = Enum.ThumbnailType.HeadShot
local thumbSize = Enum.ThumbnailSize.Size60x60
local content, isReady = game:GetService("Players"):GetUserThumbnailAsync(game:GetService("Players").idtemp, Enum.ThumbnailType.HeadShot, Enum.ThumbnailSize.Size60x60)
local iconejogador = template:Clone()
iconejogador.Name = "esse"
iconejogador.Parent = script.Parent
iconejogador.Image = content
iconejogador.Size = UDim2.new(0, 60, 0, 60)
--end
end)