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

How would you "Cut" an image in an ImageLabel?

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?

local Player = game:service('Players').LocalPlayer
local characterImageFormat='http://www.roblox.com/Thumbs/Avatar.ashx?x=352&y=352&format=png&userid=%d';



while wait(1) do
    script.Parent.Image = characterImageFormat:format(Player.userId);
end

1 comment

0

You could always put the ImageLabel in a frame and set ClipsDescentants to true for that frame, then increase the size of the label.

2 answers

✓ Accepted answer

Do this, this basically shows the version on the profile where you can only see the head.

local Player = game:service('Players').LocalPlayer
local characterImageFormat='https://www.roblox.com/headshot-thumbnail/image?userId=%d&width=420&height=420&format=png';



while wait(1) do
    script.Parent.Image = characterImageFormat:format(Player.userId);
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. :)

local Player = game.Players.LocalPlayer
local Character = Player.Character
local Avatarurl = "http://www.roblox.com/Thumbs/Avatar.ashx?x=500&y=500&Format=Png&username="

local Avatar = script.Parent
Avatar.Image = Avatarurl..Player.Name

4 comments

0

When I use your URL it just shows N/A as the image

0

Did you use the entire script?

0

Yes I did, it works fine without changing the values but once I do I get this error:

0

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