Teleporting current server before player remove?

Is it possible to teleport to current server before player remove?

game:GetService("Players").PlayerRemoving:Connect(function(plr)
	local tpDone, tpError = pcall(function()
		local inServer, goterror, placeId, serverId = game:GetService("TeleportService"):GetPlayerPlaceInstanceAsync(plr.UserId)
		game:GetService("TeleportService"):TeleportToPlaceInstance(game.PlaceId, serverId, plr)
	end)
end)
1 Like

If the player left the game, you can’t teleport them anymore.

and I feel like this can be used for malicious purposes

1 Like