I have left out other pieces of code that might be more important, my question is would attempting to get the picture of the user in this way work? (looking down at the 5th line of code)
local Character = Object.Parent:FindFirstChild("Humanoid") if Character ~= nil then local Player = game.Players:GetPlayerFromCharacter(Object.Parent) if Player ~= nil then Picture.Image = "http" .. Player.Name User.Text = Player.Name
No. All you have to do is change "http" to "http://www.roblox.com/Thumbs/Avatar.ashx?x=150&y=200&Format=Png&username=".
Also, you forgot to add 'end' to your if statements.
local Character = Object.Parent:FindFirstChild("Humanoid") if Character ~= nil then local Player = game.Players:GetPlayerFromCharacter(Object.Parent) if Player ~= nil then Picture.Image = "http://www.roblox.com/Thumbs/Avatar.ashx?x=150&y=200&Format=Png&username=" .. Player.Name User.Text = Player.Name end end
I'm assuming the rest of this script works. Hope this helps.
That is all wrong, the link to the users profile goes like this
"http://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&username=" ..Player.Name
So the finished one should look like:
local Character = Object.Parent:FindFirstChild("Humanoid") if Character ~= nil then local Player = game.Players:GetPlayerFromCharacter(Object.Parent) if Player ~= nil then Picture.Image = "http://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&username=" ..Player.Name User.Text = Player.Name