Place is restricted: Bug

I made a script using TeleportService that teleports me to a place that I created.
However when I step on the part that is supposed to TP me, it says this message:
image

How do I fix this?
Thanks

Are you trying to teleport in studio? it wont work, you have to test teleportation in game.

Also, see this post:

1 Like

We can’t help fix your script if we can’t see your script.

1 Like

My script is from a tutorial. And it is working. The problem is from the service.

I tried in-game it didn’t work.

What is the ID you give for TeleportService? I’m pretty sure the ID in the tutorial would be invalid, something like 12345.

1 Like

Have you tried publishing your other game? As if you were to create an new game without publishing it and using TeleportService to teleport there, you can recreate the same error saying “Attempted to teleport to a place that is restricted”

1 Like