Theres also a long code above this one that randomly chooses 2 players that I won’t paste into here because you probably get the gist of it.
Is there any way that I could loop the code that randomly chooses 2 players and this one until its successful?
I was making coroutines and a lot of unnecessary stuff that didn’t work and gave up. The logic I used was to check if a player left and to check if leavingplayer.Name == duelist1 (duelist1 and duelist2 are player names, player instances are duel1 and duel2) then do something but I couldn’t get any further
I would love to see some of your solutions as mine haven’t worked at all
Chances are since one of the players left, their name would be invalidated. I’m assuming along with these lines you teleport them both. Check for each player as you teleport them, and end the duel if either of them leave.
Also, I made a local function for the players that get randomly chosen but I need to return multiple values like the player, his name, and the seat he was sitting on. Do you maybe know how I could get those values?
My current return looks like this, but I’m not sure how to assign these values