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 » Scripters
Home Search
 

Re: How does the FriendService service work?

Previous Thread :: Next Thread 
smallcutebabykitten is not online. smallcutebabykitten
Joined: 28 Jul 2012
Total Posts: 237
30 Jan 2013 04:21 PM
k
Report Abuse
ArceusInator is not online. ArceusInator
Joined: 10 Oct 2009
Total Posts: 30553
30 Jan 2013 04:35 PM
http://wiki.roblox.com/index.php/IsFriendsWith_(Method)
http://wiki.roblox.com/index.php/IsBestFriendsWith_(Method)

And it's also used by CoreScripts to manage ingame friend requests.
Report Abuse
smallcutebabykitten is not online. smallcutebabykitten
Joined: 28 Jul 2012
Total Posts: 237
30 Jan 2013 04:37 PM
Is there is way to read the CoreScripts? I'm looking for bugs to report. I want to know how to send friend requests through the game manually.
Report Abuse
kirkyturky12 is not online. kirkyturky12
Joined: 30 Apr 2010
Total Posts: 1915
30 Jan 2013 04:39 PM
You can't send friend requests through the game. It is a locked method.
Report Abuse
smallcutebabykitten is not online. smallcutebabykitten
Joined: 28 Jul 2012
Total Posts: 237
30 Jan 2013 04:39 PM
I don't care if it's locked. I just want to see how it works.
Report Abuse
booing is not online. booing
Joined: 04 May 2009
Total Posts: 6594
30 Jan 2013 04:41 PM
There is, but we're not telling you. I don't know how many of us know.
Report Abuse
smallcutebabykitten is not online. smallcutebabykitten
Joined: 28 Jul 2012
Total Posts: 237
30 Jan 2013 04:41 PM
There's a way to view CoreScripts? How?

This is an alt, by the way.
Report Abuse
kirkyturky12 is not online. kirkyturky12
Joined: 30 Apr 2010
Total Posts: 1915
30 Jan 2013 04:42 PM
Ok, open up play solo, then run this in the command bar:

for i,v in pairs(game.CoreGui:GetChildren()) do v:Clone().Parent = workspace end

Then look through that until you find the playerlist script. It should have the method in there.
Report Abuse
mew903 is not online. mew903
Joined: 03 Aug 2008
Total Posts: 22071
30 Jan 2013 04:42 PM
Booing is a disinfo agent.

Shut it down.

Change tactics.
Report Abuse
smallcutebabykitten is not online. smallcutebabykitten
Joined: 28 Jul 2012
Total Posts: 237
30 Jan 2013 04:45 PM
@kirk

No, I just changed my ReflectionMetaData.xml so I can see all the services and CoreGui.

Right now, I see nothing about friends except an invisible friends icon, and some friend CoreScripts that I really want to read.
Report Abuse
smallcutebabykitten is not online. smallcutebabykitten
Joined: 28 Jul 2012
Total Posts: 237
30 Jan 2013 04:48 PM
k
Report Abuse
TeamDman is not online. TeamDman
Joined: 04 Dec 2009
Total Posts: 897
30 Jan 2013 04:52 PM
Look at the player instance in Object Browser or wiki, it has friending methods.
Booing is just acting like its classified missile codes or something.

"Don't believe everything you read online" - Abraham Lincoln
Report Abuse
Prehistoricman is not online. Prehistoricman
Joined: 20 Sep 2008
Total Posts: 12490
30 Jan 2013 05:12 PM
There is a lovely nifty way to read CoreScripts...
Report Abuse
Prehistoricman is not online. Prehistoricman
Joined: 20 Sep 2008
Total Posts: 12490
30 Jan 2013 05:40 PM
SOMEBODY MAKE A POST I'M LONELY

FFFFFFFFFFFFFFFFFFFFFF
Report Abuse
TeamDman is not online. TeamDman
Joined: 04 Dec 2009
Total Posts: 897
30 Jan 2013 05:48 PM
UUUUUUUUUUUUUUUUUUUUUUUNNNNNNNNNNNNNNNNNNNNNNNNN

"Don't believe everything you read online" - Abraham Lincoln
Report Abuse
smallcutebabykitten is not online. smallcutebabykitten
Joined: 28 Jul 2012
Total Posts: 237
30 Jan 2013 05:48 PM
@Pre

Tell me how, please?
Report Abuse
SCARFACIAL is not online. SCARFACIAL
Joined: 28 Jan 2010
Total Posts: 7970
30 Jan 2013 05:51 PM
I don't see why everybody here wants to keep this stuff secret.

for i,v in pairs(Game:GetService("CoreGui").RobloxGui:GetChildren()) do if v:IsA("CoreScript") then local script = Instance.new("Script", Workspace); script.Name = v.Name; script.Source = v.LinkedSource end end

Open the scripts this creates, copy the source and paste it into the LinkedSource property. When you open the script back up, it will have the proper sources.

Afaik there's no way to directly set the LinkedSource with a script, but this doesn't take much more time.
Report Abuse
smallcutebabykitten is not online. smallcutebabykitten
Joined: 28 Jul 2012
Total Posts: 237
30 Jan 2013 05:55 PM
@Scar

I pasted the LinkedService stuff into the property, didn't work.
Report Abuse
SCARFACIAL is not online. SCARFACIAL
Joined: 28 Jan 2010
Total Posts: 7970
30 Jan 2013 05:57 PM
Then you're doing it wrong. And 'LinkedService' isn't a thing.
Report Abuse
smallcutebabykitten is not online. smallcutebabykitten
Joined: 28 Jul 2012
Total Posts: 237
30 Jan 2013 05:59 PM
Oops, I meant LinkedSource, lol.

About me doing it wrong, uh, I pasted that into the command bar, went to the script, opened it up, copied it's source, pasted it into the LinkedSource property, went back the script; didn't work.
Report Abuse
SCARFACIAL is not online. SCARFACIAL
Joined: 28 Jan 2010
Total Posts: 7970
30 Jan 2013 06:03 PM
You have to close and re-open the script to update the source.
Report Abuse
RenderSettings is not online. RenderSettings
Joined: 16 Aug 2010
Total Posts: 2560
30 Jan 2013 06:31 PM
I'm sorry, but what do you plan on achieving by reading the corescripts (which is trival, btw.)
All it does is call SendFriendRequest or whatever, and the server handles the rest. I think. Maybe... *double checks*
Report Abuse
ScripterFTW is not online. ScripterFTW
Joined: 17 Aug 2012
Total Posts: 1450
30 Jan 2013 08:26 PM
@Render

(yes, I am op)

So, if you send a friend request, it calls SendFriendRequest, sends it, and has the other person have to accept it.

Could it be possible to be friends with anyone, if they join your game?
Report Abuse
RenderSettings is not online. RenderSettings
Joined: 16 Aug 2010
Total Posts: 2560
30 Jan 2013 09:08 PM
Yes, that is generally how in game requests work. Doing some testing in Studio, the old web-sided page for it is 404'd and the new one apparently is too. Too lazy to check if it is broken on actual roblox servers, but if not they probably have it either check the IP from the request to see if they are from actual servers (which they did before to prevent me from spoofing stuffs), or only generate the correct request URL in gameserver if it has an accesskey in the URL args. Maybe. words and stuff.
Report Abuse
agent767 is not online. agent767
Joined: 03 Nov 2008
Total Posts: 4181
30 Jan 2013 09:27 PM
http://www.roblox.com/Game/gameserver.ashx


"
game:GetService("FriendService"):SetMakeFriendUrl(url .. "/Game/CreateFriend?firstUserId=%d&secondUserId=%d")
game:GetService("FriendService"):SetBreakFriendUrl(url .. "/Game/BreakFriend?firstUserId=%d&secondUserId=%d")
game:GetService("FriendService"):SetGetFriendsUrl(url .. "/Game/AreFriends?userId=%d")
"
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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