What would be the best way to go about for creating a carry system?
Here’s the objective:
Player requests to carry another player through a billboard GUI button. If they accept, the other player is carried. If the player jumps off, both players are separated.
A player cannot carry more than 1 player.
My take:
I’ve been working on a system but it relies heavily on Remote Events. It welds the players together and animates the one being carried.
I’m willing to bet there’s a far more efficient way but I’m lost.
I think you only need about maybe 3 events, 1 to request, (send player name of whos firing and who they are requesting to) another to actually weld them together, and one more for unwelding. But that’s just for events. Could possible even make the last two into 1 and use an if statement for like if welding, or if unwelding
You could condense it down to one RemoteFunction if you really wanted.
1st player would invoke the RemoteFunction from their client
The server would invoke that same RemoteFunction for the 2nd player. The 2nd player’s client could return true or false to the server depending on whether they accepted or not
If the 2nd player chose yes to the request, the server would weld them together and return true to the 1st player’s client confirming that they did accept. If the wnd player chose not, it could just return false to the 1st player’s client.
Im not sure how familiar you are with RemoteFunctions, but I could make a mockup in a bit if you’d like. It is midnight for me though so it would be a few hours away
I see what you’re getting at. I’m decently familiar with remote functions. The mock-up would definitely help! I get the gist, though. I need to try to implement it now and see if it works better than my current system.