Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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

1 comment

0

nevermind i fixed it

1 answer

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

This discussion is preserved as it was. New answers, comments, and votes are closed.