Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I make an in-game party system?

Asked by 5 years ago

I am working on a game in which I would like to add a party ui where up to 5 players can be in a party. Anyone know where I can go to learn how?

0
NOT A REQ SITE! kittonlover101 201 — 5y

1 answer

Log in to vote
2
Answered by 5 years ago

Unfortunately, I could not find a tutorial which explicitly explains how to create a party user interface. I will attempt to explain to the best of my ability the basic logic which would be required to create the user interface.

You can create Folder object each time a party is created(when the create party button is pressed), and delete it whenever all party members exit the party or leave the game. When a member gets invited, fire a request to their client to display a notification with the options Accept or Ignore. For each member that joins(presses accept), send that information to the server, and perform a check to see if there are already 5 members in the party. If not, then add an ObjectValue with the Player object as the value. Next, add a UI to a party list which displays the new member's name, so that people viewing the list can see them on it. That's pretty much it, and when you want to check for players in the party, you can just run GetChildren() on the party folder.

0
^ ^ ^ kittonlover101 201 — 5y
Ad

Answer this question