In my Roblox game I have 2 modes that spawn you in different places. Usually, it would work, but right now, it doesnt and says the place is restricted. These are the error messages (Look at the one at the bottom, ignore the other ones.)
This was in the actual game, not roblox studio
The game has third party teleports on, and once Extreme mode had a red caution sign but this time none have it, yet it still says the place is restricted
local Teleport = game:GetService("TeleportService")
local Button = script.Parent
local Loading = script.Parent.Parent.Parent.Parent.Parent.Parent.Loading
local Place = 16782607880
local Player = game.Players.LocalPlayer
Button.MouseButton1Click:Connect(function()
Loading.Visible = true
wait(1.5)
Teleport:Teleport(Place, Player)
end)
This is one of them cases a task.wait() really is the better choice. I looked at this game and noticed it has two critical errors on its own at startup. Possibly that is the reason for the teleport failing.