Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Lobby - is there a way to still let current players respawn in their game?

I have created a game for 6 players that allows a player to rejoin the game on death but they will just have to start back at the original spawn location and restart the "race" from there. I have all of that implemented, but now I am looking to make it so that the game will wait for at least 4 players before it starts. It looked like a lobby was the answer, but it appears with a lobby - players in the current game cannot re-spawn within their game but only back in the lobby - is that correct? Is there some work around or a different type of solution I should be looking at?
Thanks!

9 comments

0

No, it is still possible for players to respawn within their game. Just make a bunch of bricks and bring the players to those bricks that are not in the lobby. Be sure to not get confused about teleportation (Torso for R6, HumanoidRootPart for R15).

0

But R6 has a HumanoidRootPart too.

0

I think R6 has HumanoidRootPart. HumanoidRootPart should be used for teleportation.

0

Torso is used for R6.

0

Watch that attitude, and yes, R6 straight up has a HumanoidRootPart. Go look right now.

0

ohh...

0

I still use Torso.

0

No hard feelings. Though i would recommend using the root part so your scripts are more flexible.

0

Sorry - got a little confused on the back and forth here- could you just clarify this a bit?

1 answer

✓ Accepted answer

Uhhh, don't entirely understand the problem, but here is some code that waits until there are 4 people in the game before running the if statement. It will check again after the if statement runs. Hopefully this helps :)

--put in ServerScriptService
while wait() do
	if game:GetService("Players").NumPlayers >= 4 then
		--Your code here :)
	else
	end
end

This discussion is preserved as it was. New answers, comments, and votes are closed.