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

Teleport player when server have enough people?

I am trying to teleport player when the server have enough people , just like some minigame game !

2 comments

0

Maybe you would like to approve my answer?

1

Here you go!

1 answer

✓ Accepted answer
local tpCF = CFrame.new(your place);
local enough = 10;
local Tped = false
game.Players.ChildAdded:Connect(function()
	if #game.Players:GetChildren() >= enough then
		if Tped == false then
		Tped = true
		for i,p in pairs(game.Players:GetChildren()) do

			repeat wait() until p.Character
			p.Character:WaitForChild("HumanoidRootPart").CFrame = tpCF
		end
		end
	end
end)

tpCF is the CFrame you are gonna teleport players. enough is the smallest amount of players to be teleported.

1 comment

0

Thanks pal.

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