Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Image not displaying?

Asked by
Bluseph 35
8 years ago

Basically I've made it so there's the name of the mvp stored, and by the time the round ends, the mvp's name and picture appear on a GUI. The GUI appears fine, as does the name, but the image of the player won't load about it. Any idea what I'm doing wrong? Please note that greenmvp name is already local and defined above it, so it properly displays the name, but the picture is just the N/A symbol.

game.ServerStorage.MVP.Frame.CCFrame.ImageLabel.Image = ("http://www.roblox.com/Thumbs/Avatar.ashx?x=150&y=150&Format=Png&username=" .. greenmvp.Name)
    game.ServerStorage.MVP.Frame.CCMvpName.Text= greenmvp.Name

1 answer

Log in to vote
0
Answered by 8 years ago

Try this URL instead:

"http://www.roblox.com/Thumbs/Avatar.ashx?x=150&y=150&userId=" .. greenmvp.UserId
Ad

Answer this question