HTTP 403 (Forbidden)

Hi.

I have this private server system script, and every time I try to make a new server, an error occurs. (HTTP 403)

The script:

createServerButton.MouseButton1Click:Connect(function()
	local code, id = TS:ReserveServer(game.PlaceId) -- line where error occurs 
	local NewJoinCode = GenerateServerInviteCode()
	GlobalPrivateServerDS:SetAsync(id, 0)
	CustomServerJoinCodesDS:SetAsync(id, NewJoinCode)
	ServerNamesDS:SetAsync(NewJoinCode, id)
	ServerAccessCodesDS:SetAsync(id, code)
	PrivateServerOwnerIdDS:SetAsync(id, plr.UserId)
	local ServerInfoDictionary = {
		ServerName = script.Parent.GetServerName:InvokeClient(plr),
	}

	ServerInfoDS:SetAsync(id, ServerInfoDictionary)
	table.insert(servers, NewJoinCode)
	local success, errorMessage = pcall(function()
		LocalOwnedServersDS:SetAsync(plr.UserId, servers)
	end)


	UpdateYourServersList()
	SortGlobalPrivateSeversAsync()
end)

Any help would be appreciated, thanks!

Yeah, an alternative reason to why this could have been happening is that studio can’t reserve server.

it broke again, the issue is that i am trying to teleport to a different game, but it cant reserve, even though both games published to same group and i have third party teleports on

1 Like

It maybe doesn’t work because your probably can’t reserve servers for different games even if both are made by the same developer.

I don’t know how do you plan to use this but you a potential fix can be to reupload the game you want to reserve a server for as another place for the main game. This way it should work.

1 Like

If I remember correctly (which is very possible I don’t) I think you can send information with your teleport. The other game could then use this information to do whatever he needs? Maybe? Honestly just a guess.

1 Like

think there are other games that reserve private servers for other places

They can teleport between places, given those places are under the same game, but to my knowledge it isn’t possible to actually teleport between games with private servers.

If you’re confused on what I mean by this, if you go into Studio and open up the Asset Manager, click places, from there you can add “places” to your “game”. These places can be completley different, look completley different, have completley different scripts, from the starting place.

Here is a screenshot of that menu below. You’ll notice I have two places. I am able to create a Reserved Server for “Reserved Server Game”, from my start place ,“Teleport Private Server Hub” to do essentially everything you’ve coded. You can provide the “illusion” of teleporting to a different game, when in reality you’re just teleporting between places under the container of that game.

cde

image
yeah i did this, but it redirects to the same place when i copy the id for the testing hub
also how do i get the private server id for the test pitch?