#Joining players

25 messages · Page 1 of 1 (latest)

native tree
#

So in my game I have people sent to another place within that game.

#

How can I see how many people are being sent to that private place?

#

Or is there any other way I should go about this.

#

I just need to see if the "match" is solo, duo, trios, or squads

dense crane
#

Um... create a variable and every time someone join, add 1

native tree
#

So yea

#

but the game cant "wait" forever

#

so like if the player doesnt load fast enough

#

the game starts

#

too soon and then its all messed up

dense crane
#
local plrsJoined = 0
game.Players.PlayerAdded:Connect(function()
  plrsJoined += 1
  if plrsJoined >= 4 then
    --add intermission of x seconds in case more players can join
  else if plrsJoined == 8 then --lets say this is the max
    --start the game  
  end 
end)
#

Something like that ig

native tree
#

Yea thats what I have rn

#

but only problem is if the game loads before all players join then it loads into that amt of players difficulty

#

cuz squads is harder then trios

#

so its guna set the varibles to trios but then the 4th player might join later

dense crane
#

And thats why you should add a intermission

native tree
#

a delay

#

yeah

dense crane
#

If there are x players, then the intermission would start and in that time more players could join but when it ends they will stay on spectate or smth idk

native tree
#

:/

#

alr

#

ill think of smthn

#

thx

dense crane
#

np