while wait(3) do local player = game.Players.LocalPlayer script.Parent.Player.Image = "http://www.roblox.com/thumbs/avatar.ashx?x=352&y=352&format=png&username=" ..player.Name end
Change the endpoint, so line 3 would be
script.Parent.Player.Image ="https://www.roblox.com/headshot-thumbnail/image?userId="..Userid.."&width=420&height=420&format=png"
Sorry if this doesn't work. New Scripter
Find more endpoints at http://wiki.roblox.com/index.php?title=Web_APIs