generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: http Service

Previous Thread :: Next Thread 
DarkMistofWoods is not online. DarkMistofWoods
Joined: 22 Jun 2011
Total Posts: 512
24 Jun 2014 08:45 PM
Who can tell me how to use http service to get an individual's rank? Can you give me an example?
Report Abuse
enzo90 is not online. enzo90
Joined: 25 Mar 2012
Total Posts: 7104
24 Jun 2014 09:08 PM
Your over complicating yourself. You don't have to. You can get it normally by doing if player is in group with a # value for the rank.
Report Abuse
secretidagent is not online. secretidagent
Joined: 07 Nov 2010
Total Posts: 1600
24 Jun 2014 09:09 PM
You don't use HttpService for that.

GroupId = 123456
function GetRole(Player)
role = Player:GetRoleInGroup(GroupId)
end
game.Players.PlayerAdded:connect(GetRole)
Report Abuse
DarkMistofWoods is not online. DarkMistofWoods
Joined: 22 Jun 2011
Total Posts: 512
24 Jun 2014 09:11 PM
I don't know how I didn't think of that.
Thanks.
Report Abuse
DarkMistofWoods is not online. DarkMistofWoods
Joined: 22 Jun 2011
Total Posts: 512
24 Jun 2014 09:15 PM
What about retrieving the character image?
Report Abuse
Bebee2 is not online. Bebee2
Joined: 17 May 2009
Total Posts: 3985
24 Jun 2014 09:18 PM
Search that on the internet. There is a thread about that.
Report Abuse
enzo90 is not online. enzo90
Joined: 25 Mar 2012
Total Posts: 7104
24 Jun 2014 09:23 PM
To retrieve character image:A billboard GUI above the players head with a text label. That you can use an http service to get the players photo for the text label... Or you could probably go into the text label and have the image the player profile image...which probably also requires an http service to get the players profile.
Report Abuse
secretidagent is not online. secretidagent
Joined: 07 Nov 2010
Total Posts: 1600
24 Jun 2014 09:25 PM
http://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&Format=Png&username=ROBLOX
Report Abuse
DarkMistofWoods is not online. DarkMistofWoods
Joined: 22 Jun 2011
Total Posts: 512
24 Jun 2014 09:26 PM
I want to retrieve the image for a GUI.
Report Abuse
secretidagent is not online. secretidagent
Joined: 07 Nov 2010
Total Posts: 1600
24 Jun 2014 09:27 PM
Put this in an ImageLabel: http://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&Format=Png&username=ROBLOX
Report Abuse
DarkMistofWoods is not online. DarkMistofWoods
Joined: 22 Jun 2011
Total Posts: 512
24 Jun 2014 09:31 PM
Ah. Thank you.
Report Abuse
Notunknown99 is not online. Notunknown99
Joined: 05 Sep 2008
Total Posts: 25360
24 Jun 2014 09:34 PM
Use userid instead of username, as usernames can change.
Report Abuse
DarkMistofWoods is not online. DarkMistofWoods
Joined: 22 Jun 2011
Total Posts: 512
24 Jun 2014 09:36 PM
True. I appreciate the help. I AM a beginner scripter, but I understand it.I may have other questions, so be ready.
Report Abuse
DarkMistofWoods is not online. DarkMistofWoods
Joined: 22 Jun 2011
Total Posts: 512
24 Jun 2014 09:39 PM
How do I retrieve the image using the player ID?
Report Abuse
Notunknown99 is not online. Notunknown99
Joined: 05 Sep 2008
Total Posts: 25360
24 Jun 2014 09:40 PM
http://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&Format=Png&username=ROBLOX

http://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&Format=Png&userid=1
Report Abuse
DarkMistofWoods is not online. DarkMistofWoods
Joined: 22 Jun 2011
Total Posts: 512
24 Jun 2014 09:41 PM
Ok. Thanks.
Report Abuse
DarkMistofWoods is not online. DarkMistofWoods
Joined: 22 Jun 2011
Total Posts: 512
24 Jun 2014 09:46 PM
Can someone show me how I can change the ImageLabel to the player image OnPlayerEnter?
Report Abuse
DarkMistofWoods is not online. DarkMistofWoods
Joined: 22 Jun 2011
Total Posts: 512
24 Jun 2014 09:50 PM
I really need this.
Report Abuse
DarkMistofWoods is not online. DarkMistofWoods
Joined: 22 Jun 2011
Total Posts: 512
24 Jun 2014 10:05 PM
How do I get this to work?

script.ImageLabel.Image = ("http://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&Format=Png&userid="(player.userid))

As I said, I am a beginner scripter, so help is appreciated.
Report Abuse
Notunknown99 is not online. Notunknown99
Joined: 05 Sep 2008
Total Posts: 25360
24 Jun 2014 10:24 PM
"whatever" .. player.userId
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image