my game is minigame based. using teleport service. i need to know how many people where teleported to the new place. this is because. the game only starts when each player is loaded in.
currently, i send in teleportdata on how many people were present during the teleport.
the issue I’m having. is when someone leaves during the teleport. the amount of players sent in the teleportdata doesn’t change. so the game wont start for the players teleported.
is there a way i can update that data? i tried to update it when the player leaves the game. using player.playeremoving. but that didn’t work.
is there a function that i can get the amount of players joined via teleport service?
You could add 10 seconds at the start to give everyone time to load in, if they didn’t make it during the 10 seconds they would have to spectate, this is really bad though because if someone is on bad hardware they may never get to play a game, and no matter what they will always take a while to load. So if someone in the game was on really bad hardware and it take them 30-40 seconds to load, then it would be unfair for everyone else that has loaded in to have to wait, so I think 10 seconds should be enough time.
Also is there a specific reason you are using the teleport service?
I haven’t used TeleportService myself, but I would add a sort of grace period to give players the time to load in, 10 seconds should be enough. Surely, there would be more bugs with teleport service, Since if a player did not get teleported for whatever reason they would have to wait again for a minigame to startup. Keeping it all in one place would be more beneficial, sure there would be more instances in the game, but the player would have already loaded them up by the time they spawned in, but instead every time they teleport they would have to keep loading the game up again and again. This type of method/ approach would work on games like tower defence since you are in the teleported world for a much longer time than a minigame.
Games can last up to 5 minutes. i’d like there to be a lot of people in a server. because a system i plan to add. i dont think the game would run well if the games and lobby were together. i’m talking 50 max or a little lower. that’s another reason why i have to make it teleport place. also i can make games longer. max 10 mins. plus the loading time is more likely going to be quicker in teleport place than if both the lobby and game were together
Sorry for the late reply, I still think there is more hassle in setting up the teleport service correctly, than just keeping everything one game, especially with 50 players or less, it would be unnecessary to use teleport service.
If you do that then I would still recommend wait 10 seconds to give everyone time to load in, otherwise it could ruin players experience if they have to count on everyone joining the game.