Attempted To Teleport To Restricted Place

Hello! Recently I have been having an issue with my script (Shown Below) to teleport a group of players to a reserved server.

I have not found any solutions working for me. The help will be appreciated

`local TeleportService = game:GetService(“TeleportService”)
local ReplicatedStorage = game:GetService(“ReplicatedStorage”)

local GameFolder = ReplicatedStorage:WaitForChild(“Game”)
local RemoteEvents = GameFolder:WaitForChild(“RemoteEvents”)

local TeleportParty = RemoteEvents:WaitForChild(“TeleportParty”)
local PlaceId = 14128337719

TeleportParty.OnServerEvent:Connect(function(player,Party)
local AccessCode = TeleportService:ReserveServer(PlaceId)
TeleportService:TeleportToPrivateServer(PlaceId,AccessCode,Party)
end)`

Either the game is private or you dont have httpenabled or its just a roblox error.

Hey, just gonna rephrase what the previous guy said.

Check if your studio place has http request enabled. To do this follow below.
Home → Game Settings → Security → Allow Http Requests and enable it so it is green.

If that doesn’t work try seeing if the game your sending players to is private.
Find game and configure game to locate its properties.

Thanks for the help but I have done everything there that you told me to do except for enabled http request. I’ll let you know if it works!

Hey has it worked? Or does the issue still occur?

Sorry I had to go somewhere. Trying it right now!

It still does not work. Right now all it does is it only telelports 1 player and for the other player it says place is restricted. There is 1 issue it could be, which is the code could be getting locked and not allowing anyone else to join that server which could be possible. Issue is I don’t know how to fix it