Would this place teleport system work?

  1. What is the issue? Include screenshots / videos if possible!

It isn’t a issue, more of like a question. I’m finishing off a party system that I’ve been working for days and I want to make sure the teleport function works, but I am worried that if it does not work I won’t be able to see the output and see the error that I have done, so I need help on this.
This is currently my local script.

local plr = game.Players.LocalPlayer

script.Parent.MouseButton1Click:Connect(function()
	for i = 15,0, -1 do
		script.Parent.Text = i
		wait(1)
	end
	script.Parent.Text = "PLAY"
	local srvr = game.ReplicatedStorage:FindFirstChild(plr.Name .. " Server")
	local plrs = srvr.Players:GetChildren()
	for i, child in ipairs(plrs) do
     -- Right Here VV I am trying to get the player from a value in a folder.
		local realPlr = game.Players:FindFirstChild(child.Name or child.Value)
		game.ReplicatedStorage.Remotes.Teleport:FireServer(realPlr)
	end
end)

And this is my server script.

remotes.Teleport.OnServerEvent:Connect(function(player, members)
	local TeleportService = game:GetService"TeleportService"
	local reserve = TeleportService:ReserveServer(ID)
	TeleportService:TeleportToPrivateServer(reserve, player, members)
end)
  • I know that it says ‘ID’ in the server script but I have put the real ID in.
  1. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    I’ve looked and researched this a lot but I am worried if this might not work, and I would need help from you guys on this!