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: Is there a way to retrieve how many friends a player has?

Previous Thread :: Next Thread 
Mario5422 is not online. Mario5422
Joined: 17 Nov 2008
Total Posts: 3922
18 Jul 2011 07:48 PM
..and display it in a GUI?

Thanks
Report Abuse
Mario5422 is not online. Mario5422
Joined: 17 Nov 2008
Total Posts: 3922
18 Jul 2011 07:54 PM
Bring
Up
My
Post
Or
You
Shall
Die
Report Abuse
marioblox1094 is not online. marioblox1094
Joined: 14 Aug 2010
Total Posts: 1839
18 Jul 2011 07:57 PM
Dunt think so.
Report Abuse
Mario5422 is not online. Mario5422
Joined: 17 Nov 2008
Total Posts: 3922
18 Jul 2011 08:05 PM
-__________-
Report Abuse
Mario5422 is not online. Mario5422
Joined: 17 Nov 2008
Total Posts: 3922
18 Jul 2011 09:04 PM
BAWMP
Report Abuse
alexmach1 is not online. alexmach1
Joined: 02 May 2008
Total Posts: 1977
18 Jul 2011 09:08 PM
no. you cant. please stop bumping.
Report Abuse
Mario5422 is not online. Mario5422
Joined: 17 Nov 2008
Total Posts: 3922
18 Jul 2011 09:10 PM
I thought you could.

Look here: http://blog.roblox.com/?p=3623
Report Abuse
alexmach1 is not online. alexmach1
Joined: 02 May 2008
Total Posts: 1977
18 Jul 2011 09:12 PM
you can find out who is friends with who, but you cant find out how many friends they have. if you read that, it never says you can.
Report Abuse
marioblox1094 is not online. marioblox1094
Joined: 14 Aug 2010
Total Posts: 1839
19 Jul 2011 08:58 AM
I got an idea!
It might include lag.
Dis is in
Player>PlayerGui>ScreenGui>Script

friends = 0
currentplayer = 0

repeat
wait()
currentplayer = currentplayer +1
if script.Parent.Parent.Parent:isFriendsWith(currentplayer) then
friends = friends +1
else
wait() --Create less lag
until currentplayer == 999999
end
Report Abuse
Seranok is not online. Seranok
Joined: 12 Dec 2009
Total Posts: 11083
19 Jul 2011 09:03 AM
...

That would only take a few hours to run trhough.
Report Abuse
marioblox1094 is not online. marioblox1094
Joined: 14 Aug 2010
Total Posts: 1839
19 Jul 2011 09:03 AM
Yeah...
Report Abuse
marioblox1094 is not online. marioblox1094
Joined: 14 Aug 2010
Total Posts: 1839
19 Jul 2011 09:10 AM
Still, HALP!!! DIS ISNT WORKING!!!
Not printing a thing, can't see output.


friends = 0
currentplayer = 0

repeat
wait()
currentplayer = currentplayer +1
if script.Parent.Parent.Parent:isFriendsWith(currentplayer) then
friends = friends +1
else
print(""..currentplayer.." is not friends with "..script.Parent.Parent.Parent.Name..".")
wait()
until currentplayer == 999999
print(""..script.Parent.Parent.Parent.Name.." has "..friends.." friends.")
end
Report Abuse
Seranok is not online. Seranok
Joined: 12 Dec 2009
Total Posts: 11083
19 Jul 2011 09:11 AM
So you're better off making a custom list of all his friends names and ids
Friends = {}
Friends[261] = "Telamon"
Like that.
Report Abuse
Seranok is not online. Seranok
Joined: 12 Dec 2009
Total Posts: 11083
19 Jul 2011 09:11 AM
The Player has to be in-game for you to do Player:IsFriendsWith()
Report Abuse
marioblox1094 is not online. marioblox1094
Joined: 14 Aug 2010
Total Posts: 1839
19 Jul 2011 09:12 AM
Oh. I hate Play Solo when testing dat then.
Report Abuse
marioblox1094 is not online. marioblox1094
Joined: 14 Aug 2010
Total Posts: 1839
19 Jul 2011 09:19 AM
I tested it Using a textlabel in Online, nothing:

friends = 0
currentplayer = 0

repeat
wait()
currentplayer = currentplayer +1
if script.Parent.Parent.Parent:isFriendsWith(currentplayer) then
friends = friends +1
else
script.Parent.Winner.Text = ""..currentplayer.." is not friends with "..script.Parent.Parent.Parent.Name.."."
wait()
until currentplayer == 999999
script.Parent.Winner.Text = ""..script.Parent.Parent.Parent.Name.." has "..friends.." friends."
end
Report Abuse
alexmach1 is not online. alexmach1
Joined: 02 May 2008
Total Posts: 1977
19 Jul 2011 09:20 AM
go to scripting helpers, lots more people with this kind of knowledge.
Report Abuse
marioblox1094 is not online. marioblox1094
Joined: 14 Aug 2010
Total Posts: 1839
19 Jul 2011 09:21 AM
This is scripting helpers.
Report Abuse
alexmach1 is not online. alexmach1
Joined: 02 May 2008
Total Posts: 1977
19 Jul 2011 09:38 AM
LOL, i was stuck on roblox talk.
Report Abuse
br45entei is not online. br45entei
Joined: 06 Nov 2010
Total Posts: 1058
19 Jul 2011 09:43 AM
@marioblox1094;

LOL...
Report Abuse
MARIOSTAR6464 is not online. MARIOSTAR6464
Joined: 21 Jul 2008
Total Posts: 13674
19 Jul 2011 09:44 AM
The only information you can find out about a player's friends is

-If they are friends with - :IsFriendsWith()
-If they are best friends with :IsBestFriendsWith()
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