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

Character displaying in GUI?

Asked by 6 years ago

I am making a game and I was wondering about how I could go about incorporating a character into a GUI. For example Phantom Forces home gui shows like a clone of the player.

1 answer

Log in to vote
0
Answered by
Elixcore 1337 Moderation Voter
6 years ago
Edited 6 years ago

Hello, this is the script I use and the only method i know of:

1st. you need an ImageLabel inside a screengui.

2nd. you set the imagelabel's image with a localscript as shown below.

ScreenGuiWithImageLabel.Image = "http://www.roblox.com/thumbs/avatar.ashx?x=352&y=352&format=png&username="..game.Players.LocalPlayer.Name

This will set the imagelabel's image to the LocalPlayer's avatar picture. use a localscript for this.

Ad

Answer this question