1

# Encountering Error 773 multiple times while trying to teleport to friend , any help?

So , I made a friend teleport gui that teleports you to your friend. The place which where you are supposed to be teleported to has a max player count of 50 and is public as I tried using Teleport() and TeleportToPrivateServer() and it works. Im using a local script to teleport the player to their friend. But when I click on the join button , I get an error saying

Teleport Failed Attempt to teleport to a place that is restricted Error Code : 773

Client Code:

join.MouseButton1Click:Connect(function()
teleport:TeleportToPlaceInstance(v.PlaceId , v.GameId , Player)
end)