403(Forbidden) HELP!

I am trying to make a teleport service teleport everyone to the same server.

When I start the game it says 403(Forbidden) in Studios image
In the game itself it says image

I made both games Public, enabled all Security settings, looked it up on DevForum(There solution was making it public)

After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!

local Players = game:GetService("Players")

local RSC = game:GetService('TeleportService'):ReserveServer(7807534521)
local part = script.Parent
local function onTouched(part)
	local player = Players:GetPlayerFromCharacter(part.Parent)
	if not player then return end
	game:GetService('TeleportService'):TeleportToPrivateServer(7807534521, RSC, player)
	
end
part.Touched:Connect(onTouched)

You have clearly done something wrong. Are you trying to teleport players to a separate game owned by another player? If it isn’t directly owned by you (group ownership or account ownership) then you won’t be able to reserve a server for the game.

The game is owned under my group and they are set in the same experiment as different places

Enable 3rd party teleports and product purchase prompts in the settings menu.

^^ On both games.

As long as they are all owned by you this should work without fail.

You need to use a array of players not just a single variable

:TeleportToPrivateServer(7807534521, RSC, {player}) -- See the curly brackets

This should fix it, the player(s) being sent to the private server are expected as an array.

https://developer.roblox.com/en-us/api-reference/function/TeleportService/TeleportToPrivateServer
Note the 3rd parameter in the above function documentation.

I have done that as I said I enable all Security things so

You are not able to reserve private servers for a game that the script is not based within. You should try teleporting the player to a public server of the other game, but pass an argument with that teleport so when the player reaches the new game then you have a receiving script to detect that argument and send him to a private server.

Also I suggest using TeleportAsync. Heres a code example:

local tps = game:GetService("TeleportService")
local teleportOptions = Instance.new("TeleportOptions")
teleportOptions.ShouldReserveServer = true

local teleportWorks, teleportNoWorks = pcall(function()
	tps:TeleportAsync(yourPlaceId, {player}, teleportOptions)
end)

if teleportWorks then
	return true
else
	error(teleportNoWorks)
end