Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

why does it keep saying attempted to teleport to a restricted place?

Asked by 2 years ago

when i try to teleport a player to another place within my game, it says attempted to teleport to a restricted place. this is my code:

if plr:GetRankInGroup(10633992) > 250 then
    game:GetService("TeleportService"):TeleportToPlaceInstance(10161636137,10161506415,plr)
        end

i also tried with teleportasync like this:

if plr:GetRankInGroup(10633992) > 250 then
            game:GetService("TeleportService"):TeleportAsync(10161636137,{plr})
        end
0
nevermind i fixed it FrostedFlakes67 71 — 2y

1 answer

Log in to vote
0
Answered by 2 years ago

Questions:

  1. Is the game you are trying to teleport a game you own or have access?
  2. Did you go to Game Settings > Security > Allow third person games and enabled It?

I feel like the script works fine, just you probably didn't realized that Allow Third Person Games was not enabled

Ad

Answer this question