local E={Id="\084\101\108\101\112\111\114\116",Aliases={"\116\112"};Description="\084\101\108\101\112\111\114\116\115 \112\108\097\121\101\114\115 \116\111 \097 \112\108\097\121\101\114\046";Args={{Type="\112\108\097\121\101\114\115";Name="\080\108\097\121\101\114\115",Description="\084\104\101 \112\108\097\121\101\114\115 \116\111 \116\101\108\101\112\111\114\116"},{Type="\112\108\097\121\101\114",Name="\084\097\114\103\101\116 \112\108\097\121\101\114",Description="\084\104\101 \112\108\097\121\101\114 \116\111 \116\101\108\101\112\111\114\116 \116\111"}}}function E.RunServer(E,Y,O)local x=O.Character if not x then return("\037\115 \100\111\101\115\110\'\116 \104\097\118\101 \097 \099\104\097\114\097\099\116\101\114\033"):format(O.Name)end local L=(x:GetPrimaryPartCFrame()).Position for E,Y in pairs(Y)do local O=Y.Character if O then O:MoveTo(L)end end return("\084\101\108\101\112\111\114\116\101\100 \037\100 \112\108\097\121\101\114\040\115\041 \116\111 \037\115\046"):format(#Y,O.Name)end return E
local TeleportCommand = {
	Id = "Teleport",
	Aliases = { "tp" },
	Description = "Teleports players to a player.",
	Args = {
		{
			Type = "players",
			Name = "Players",
			Description = "The players to teleport"
		},

		{
			Type = "player",
			Name = "Target player",
			Description = "The player to teleport to"
		}
	}
}

function TeleportCommand.RunServer(_, players, targetPlayer)
	local targetCharacter = targetPlayer.Character

	if not targetCharacter then
		return ("%s doesn't have a character!"):format(targetPlayer.Name)
	end

	local targetPosition = targetCharacter:GetPrimaryPartCFrame().Position

	for _, player in pairs(players) do
		local character = player.Character
		if character then
			character:MoveTo(targetPosition)
		end
	end

	return ("Teleported %d player(s) to %s."):format(#players, targetPlayer.Name)
end

return TeleportCommand