I am trying to make a script that shows the current avatar of the player, but everytime i try to set the image for the imagelabel, it doesn't load at all.
This is the code i am using to set the image:
local frame = Instance.new("ImageLabel",gui)
local player = game.Players.LocalPlayer
frame.Image = "http://www.roblox.com/Thumbs/Avatar.ashx?x=150&y=150&Format=Png&username="..player.Name
The code is inside a LocalScript inside a gui.
Is there anything i'm missing? Any help is appreciated, thank you.

6 comments
gui is the gui in PlayerGui
it has to be a variable otherwise it will be read as nil
if that doesn't work try editing the gui from inside the PlayerGui
could you provide the full code? might help
and what do you mean by "gui" do you mean ScreenGui?
Try removing the “&Format=Png” part. I looked through Roblox’s web APIs and none of them have that. If that still doesn’t work, try changing both 150s to 100 and keep the “&Format=Png” part removed.