RekkSaiJoin Date: 2014-12-16 Post Count: 111 |
I have tried to use the web APIs for this which seemed simple enough However the HTTP service doesn't allow for access of roblox #### and guess what the APIs are User Thumbnail Regular https://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&username=ROBLOX ############################################################## ######### #################################################################################### ######################################################################################## ############################################################################################ ###################################################################################### ....Roblox #### i get trust check failed error because of this. I can't get the id or the headshot of a user. |
|
RekkSaiJoin Date: 2014-12-16 Post Count: 111 |
The hashtags are all roblox links btw from the Web API page |
|
|
y do u need to fetch it with the http service... |
|
RekkSaiJoin Date: 2014-12-16 Post Count: 111 |
Because you get the picture from the Web APIs right?
Otherwise you tell me how to get a headshot of the user please? |
|
|
bruh u use the &username=___ part in a content string for images |
|
RekkSaiJoin Date: 2014-12-16 Post Count: 111 |
Please expand, I don't understand |
|
|
You don't need to explicitly send any requests or anything. Just use the actual link as an image and you'll see the avatar picture.
|
|
|
|
RekkSaiJoin Date: 2014-12-16 Post Count: 111 |
This does work for the full body picture, but how does it work for a headshot? |
|
|
RekkSaiJoin Date: 2014-12-16 Post Count: 111 |
I did I am looking at the APIs now. Problem is for the headshot, I need to get the ID of the player.
So I can try
player.UserID, like it says on the wiki
http://wiki.roblox.com/index.php?title=API:Class/Player/UserId
but studio says it doesn't exist
I tried HTTP service to get id from another API
that didn't work cos i cant use http service like that...
so idk what to do... |
|
|
RekkSaiJoin Date: 2014-12-16 Post Count: 111 |
You can't use that function or the GetThumbnailFromUsernameAsync(), they're temporarily deprecated due to errors.... |
|
|
u dont need the id (most likely) as most of the apis allow support for multiple arguments
&userid=ID
or
&username=NAME
and things like that
should work on all things that require player information |
|
RekkSaiJoin Date: 2014-12-16 Post Count: 111 |
######################################################################################## this is the link that gives me the correct picture. Tell me how this works with a Name. |
|
|
"
&userid=ID
or
&username=NAME
" [2] |
|
RekkSaiJoin Date: 2014-12-16 Post Count: 111 |
Ok I figured it out. Final code: player = script.Parent.Parent.Parent.Parent.Parent id = player.UserId script.Parent.Image = ################################################################################################# |
|
|
game.Players.LocalPlayer.. |
|
|
You might want to use GetService.
|
|