Teleporting suddenly doesnt work

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
Screenshot 2024-06-30 084654

1 Like

Can you share your code? We can help better with that!

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)

You should add safe calls (pcalls) because TeleportService may fail teleporting and you want to know when so you can retry. I think that is the issue.

1 Like

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.