I'm trying to make a game and I was wondering if it's possible to get the player avatar to display in game via a script so if they change their appearance, it will change in game?
COMMUNITY QUESTION
is it possible to get a model of a player with a script?
2 answers
The image of a player's avatar is stored in unique links on the roblox website in various sizes. I like to use 352x352. Set the image of an ImageLabel to "http://www.roblox.com/Thumbs/Avatar.ashx?x=352&y=352&Format=Png&username="..(Name of player)
Yes it is possible and second this site is not for requests. with that said, here is a rough idea of you want
if Parent:findFirstChild("Humanoid") ~= nil then
if Parent:findFirstChild("Humanoid").Health > 0 then
local P = Parent:GetChildren()
local M = Instance.new("Model")
local H = Instance.new("Humanoid")
M.Parent = game.Workspace
M.Name = hit.Parent.Name
if Parent:findFirstChild("Pants") ~= nil then
Parent.Pants.Parent = M
end
if Parent:findFirstChild("Shirt") ~= nil then
Parent.Shirt.Parent = M
end
end
end
2 comments
0
Your script is missing two "ends," and isn't tabbed correctly. :P
0
:P like i said, its an example so its pretty "rough" around the edges
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
Good catch cabbler