In my game players start in a starting place and then join a queue and then get teleported to the game place with their “group”. Once they get to the game place I made a script that waits for everyone to finish teleporting before starting.
PlayerJoinEvent.OnServerEvent:Connect(function(player, TeleportData)
ServerScriptStorage.Joined.Value = ServerScriptStorage.Joined.Value + 1
if ServerScriptStorage.Joined.Value == TeleportData[1] then
Pretty much how it works is everytime a player joins it adds +1 to a number value and then checks if that number is equal to the number of players that show have been teleported.
Once it has all of the players it starts the game. All of the start game stuff comes after the last if statement but that isn’t relevant.
Anyways during testing on time there was a weird glitch with roblox and a player didn’t finish teleporting. It said that the game place was restricted or something. This has literally only happened once out of like 100 times we have tested.
However I still don’t want it to happen at all so I think that the best solution is to make the game start if it has to wait 20 seconds for all of the players to join. The game doesn’t actually need ALL of the players there if 1 or 2 fail to get teleported it’s not a big deal.