This is what I have so far, it Just gets the players image and puts it on the image label, now what I wanted to do is zoom in on the players face area so it only shows that instead of the entire character how would I do that?
1 | local Player = game:service( 'Players' ).LocalPlayer |
2 | local characterImageFormat = 'http://www.roblox.com/Thumbs/Avatar.ashx?x=352&y=352&format=png&userid=%d' ; |
3 |
4 |
5 |
6 | while wait( 1 ) do |
7 | script.Parent.Image = characterImageFormat:format(Player.userId); |
8 | end |
Do this, this basically shows the version on the profile where you can only see the head.
1 | local Player = game:service( 'Players' ).LocalPlayer |
2 | local characterImageFormat = 'https://www.roblox.com/headshot-thumbnail/image?userId=%d&width=420&height=420&format=png' ; |
3 |
4 |
5 |
6 | while wait( 1 ) do |
7 | script.Parent.Image = characterImageFormat:format(Player.userId); |
8 | end |
If the image says "N/A", try loading the game again, and it will load in.
Try this, this is what I do. Adjust that x & y for how zoomed in you want. :)
1 | local Player = game.Players.LocalPlayer |
2 | local Character = Player.Character |
3 | local Avatarurl = "http://www.roblox.com/Thumbs/Avatar.ashx?x=500&y=500&Format=Png&username=" |
4 |
5 | local Avatar = script.Parent |
6 | Avatar.Image = Avatarurl..Player.Name |