I was making my game, and it teleports you to another game that I made when you click a button.
Here's my code:
script.Parent.gertname.MouseButton1Click:Connect(function(player)
local TPS = game:GetService("TeleportService")
TPS:Teleport(examplenumber, player)
end)
It doesn't give me any errors, but when I open the dev console, it says
Failed to teleport to place created by third party with teleport protections on this universe.
Can someone help me with this?

1 comment
go to game settings click security and then click third party teleport