Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Does anyone know how to add a picture of that player?

I know this is against the rules since am not asking about scripting, but can someone help me?

6 comments

0

no one knows how sorry this question is too complex

0

there's a link actually

0

A link to?

0

idk where i can find it now but i used to copy it from the PRG kit in roblox it's found in the guis

0

We are not a substitute for your brain!

0

Are you seriously going through everyone's history and try and comment weird stuff? Then go home kiddo.

2 answers

✓ Accepted answer

http://robloxdev.com/articles/Web-APIs

There, all the API's are there.

Just do like

Eg: https://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&username=Roblox

script.Parent.ImageLabel.Image = https://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&username=pedroquitas1

4 comments

0

But I want it to change according to the player, like bloxburg

0

get username of the player then put it in username=

0

Ye

0

There are a ton of API's. Just change the username or UserId according to what is required.

Like pedroquitas1 said, use 'https://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&username='

like this

local plr = game.Players.LocalPlayer
local fr = script.Parent
fr.Image = "https://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&username="..plr.Name

10 comments

0

(you can accept his answer lol)

0

Thank both of you

0

1 problem... It doesnt load the image or it just turns transparent for no reason?

0

Try it in the real game, not in studio

0

Still not there :C

0

Show the script.

0

local plr = game.Players.LocalPlayer local fr = script.Parent fr.Image = "https://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&username="..plr.Name

0

is script.Parent your image?

0

is script.parent the ImageLabel/Button or the parent of the image label/button?

0

Now it works! Thanks.

This discussion is preserved as it was. New answers, comments, and votes are closed.