So I’m making a game where you can send a request to play a match with other players in-game. It they accept it’s supposed to teleport them to the game. Here is the code:
local TS = game:GetService("TeleportService")
local place = 1234567890
...
game.ReplicatedStorage.AcceptedRequest.OnServerEvent:Connect(function()
local code = TS:ReserveServer(place)
TS:TeleportToPrivateServer(place, code, {player, game.Players[otherPlayer]})
end)
end)
but the result looks like this:
Attempt to teleport to a place that is restricted, Error Code 773
How can I fix this?