Weird Disconnect Error

Hi,

I was trying to teleport the player but i get this weird error, when the player arrives after the teleportation:

Here is the snippet of the code:

game.ReplicatedStorage.Remotes.TeleportPlayer.OnServerEvent:Connect(function(player)
	local Options =  Instance.new("TeleportOptions")
	Options.ServerInstanceId = game.JobId
	game:GetService("TeleportService"):TeleportAsync(game.PlaceId, {player},Options)
end)

I Never had an issue like this before, is there anything I’m doing wrong?

1 Like

Okay this is fixed.

the method works only if there is more than 1 player in the server.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.