{sry for bad english}
Ok my problem is :
I made a queue system and if a player join the queue a new StringValue will be created and the Name is of the StringValue is the player name (StringValue is in a Folder)
ok then i need to teleport them i did this with that script :
(the script is placed in an IntValue in the Queue Folder)
local placeId = 3595658973
local TeleportService = game:GetService("TeleportService")
script.Parent.Changed:Connect(function()
if script.Parent.Value >1 then
print("starting in 20")
wait(20)
if script.Parent.Value >1 then
for _,v in pairs(script.Parent.Parent:GetChildren()) do
if v:IsA("StringValue") then
local pl = game.Players:GetPlayers(v.Name)
local reservedServer = TeleportService:ReserveServer(placeId)
TeleportService:TeleportToPrivateServer(placeId, reservedServer, pl)
end
end
end
end
end)
But all players are teleported in the game
I’ve tried everything and it’s still teleporting everyone