I am trying to teleport player when the server have enough people , just like some minigame game !
✓ ANSWER ACCEPTED
Teleport player when server have enough people?
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.

2 comments
Maybe you would like to approve my answer?
Here you go!