Creating an Invite button to activate SocialService Invite Prompt

Hello Developers,

We had a free to take game using the SocialService to Prompt the invite panel but it was activated via touching a button with your humanoid. With the UI however you have to script it differently. How should I script it to run by clicking a UI button?

Hey! :wave:,
Could you please be a little more clear on what you are trying to achieve? If you already have code, and it isn’t working, could you provide it? Thanks!

Never mind, I know what you mean. Mis-read it, here is a helpful thread on SocialService, if you need more help, or examples, let me know! :smiley:

2 Likes

I have read this, I am just confused on how to script it to work with GUI buttons

Alright, have you checked out the example code in there? If you don’t know how to do what it says, I can make you a system, you can easily replace a few functions in that code and make it work on a GUI.

That would be great! That will make it easier to make it work with the UI.

1 Like

Hey I actually found you an open source game made by an Administrator, this is a Demo and you can use it how you want! :smiley:
DevForum post;

Game that is Open sourced;
https://www.roblox.com/games/2908070282/SocialService-Game-Invite-Demo

Good luck! If you need any more help let me know. That should work in your case. :slight_smile:

2 Likes