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?
What that error is saying is that the game you are teleporting them to does not allow third-party teleports. If it is one of your games, then just open the game go to game settings>security>enable third party teleports.
Hope this helped!
script.Parent.MouseButton1:Connect(function() game:GetService("TeleportService"):Teleport(UR_PLACE_ID) end)
@MarcTheRubixQb was right. The error "Failed to teleport to place created by third party with teleport protections on this universe." means the game has enabled teleports protections.
Example for a ROBLOX game called "RoBeats", they also enabled teleports protections, so you can't teleport to the game directly using TeleportService ingame anymore.
Lets say if both of them does not have teleport protections you should PUBLISH your game and the targeted game should also publish. And you must enable Third Party Teleports on your Game Settings.