Update: Thank you Denbra37 for giving me one solution to this issue. After fiddling with it, I came up with my own solution to the problem!

I am making a round based game, I intend to allow players to choose if they'd like to participate in a round or not; I figured the best way to go about this would be through a "BoolValue" set to either "True" or "False", if the players BoolValue is true, they are added into a match. The problem is, I have no idea how I would search through each player to find out if their "isPlaying" value is true or not.

My best guess would be to set up a "for i, v in pairs" loop, which runs anytime a new round starts, and goes through each player, finding the value, then whether or not it's true, but I'm truly at a loss here, haha-

3 comments

0

Are you teleporting the players into a special area ?

0

In that case I would use a RemoteEvent that'll send a gui to everyone inviting them to participate in the round. If they click "yes" it sends another remote event with the player name. You can connect this remote event to a server sided script that'll teleport the argument (the player that clicked yes) into the place.

0

Ah, that's much simpler than I initially thought! Unfortunately I've already come up with a makeshift solution after playing around with my timer script haha! Thank you for the concept though, probably works smoother than mine.