Teleporting Player to a Private Place

I am trying to teleport a player to a private place that was added to my current experience. I am having trouble figuring out why it is not working…

Things to Note:
-I am only teleporting a single player since it is a single-player server
-When I run the current code on screen, no error or message is displayed in the output

Code:

local TPS = game:GetService("TeleportService")
local Player = game.Players.LocalPlayer
local code = TPS:ReserveServer(game.PlaceId)

script.Parent.MouseButton1Click:Connect(function()
	TPS:TeleportToPrivateServer(7267151964,code,Player)
end)

ReserveServer can only be called on the server and TPS:TeleportToPrivateServer as well.

So you can use a remote event to make it work.