If you are getting a restricted place teleport error, it should only mean 1 of 2 things.
You don’t have access to the place you are teleporting to (or it’s private)
You can’t join it because the max player count has been reached
First make sure the above is correct, but there is however someone with a familiar error in this post
They didn’t solve the issue and someone linked this post as it was a Roblox issue (these are old posts). I don’t seem to have this issue on my side, so I’m not so sure it’s on Roblox.
You should use this to figure out what exactly is the issue with your teleport error (which I found in the above post).