I'm making a game with an inventory and I want a little decal which should look exactly like the person currently vieuwing that decal. Something like an avatar of yourself that changes if you change. Is there any possible way to do this? Any help is appreciated. :)
Make sure to make an attempt and post some code next time you ask for help.
Besides that, here's what you need:
"http://www.roblox.com/Thumbs/Avatar.ashx?x=150&y=200&Format=Png&username="
You can use this in a script like so with an ImageButton, ImageLabel, or any other picture displaying instances.
Note: "object" should be the instance you're changing the image of (Decal, ImageButton, etc.)
For GUIs:
object.Image = "http://www.roblox.com/Thumbs/Avatar.ashx?x=150&y=200&Format=Png&username=" .. game.Players.LocalPlayer.Name -- You can change this to anything, like a variable
For Decals and/or Textures:
object.Texture = "http://www.roblox.com/Thumbs/Avatar.ashx?x=150&y=200&Format=Png&username=" .. game.Players.LocalPlayer.Name -- You can change this to anything, like a variable
If there are any errors I'd be happy to help you debug them.