Cant teleport because that place is restricted

Hey there so I scripted some stuff and it says I cant teleport to my other place because it is “Restricted”
Here is my code:

local pc = workspace.PlayCam
local pb = workspace.PlayCam2
local cc = workspace.CurrentCamera
local play = script.Parent.Playbutton
local quit = script.Parent.QuitButton
local num = 0
local player = game.Players.LocalPlayer

wait(00.01)


cc.CameraType = Enum.CameraType.Scriptable

cc.CFrame = pc.CFrame

quit.MouseEnter:Connect(function()
	cc.CFrame = pb.CFrame
end)

play.MouseEnter:Connect(function()
	cc.CFrame = pc.CFrame
end)

play.MouseButton1Down:Connect(function()
	game:GetService("TeleportService"):Teleport(11319850970) 
end)

quit.MouseButton1Down:Connect(function()
	player:Kick("Why don't you wanna play? Are you scared?")
end)


Not sure what to do.
image

TeleportService returning “place is restricted” means that the place you’re trying to teleport to is set to private (or friends only). Go to it’s “Experience” settings and check there. Both main game and place.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.