How can I figure out which script is causing "Teleport fail"

Is there a way I can see which script is causing this so I can delete it?
Here’s what’s happening:


Thanks in advanced! :slight_smile:

2 Likes

Look in the studio output window and it should tell you the source of it. If it doesn’t let you view it, its probably a malicious plugin.

I see it in the dev console when in game but when testing in studio it doesn’t even attempt to try because I’m in studio so it doesn’t error.

In studio, press this key combination:
CTRL + SHIFT + F and type in TeleportService. Search through any results and delete it there.

says 0 matching lines, 0 matching scripts, Total scripts searched 410

Try different keywords. Teleport, etc.

I don’t really know what could be causing a teleport error. Could it be that a backdoor is requiring a module that has a teleport? I would try searching require.

Try disabling some plugins and then try to playtest.

2 Likes

Look for obfuscated code, most obfuscated code starts with. return function

1 Like

It says there’s no code found with those words.

Didn’t work, I installed a virus finder plugin and it didn’t find anything.

That didn’t work either. I wonder if its a Roblox bug?

Not a Roblox bug. Search for ‘require’, ‘setfenv’, and ‘getfenv’ separately. You will get a match for one of those.

1 Like

These teleport failed message can be caused by some virus.
You can install anti-virus plugin and remove it.

Of course, a lot of anti virus plugins are viruses. The best policy is to just be careful.

Try looking into TestService. Most viruses that I have come along rooted there

1 Like

maybe the game is just restricted, who knows. you get the same message when you join someone that is in a private server

could be obfuscated, search for ‘getfenv’, make sure to enable show all objects in studio settings

Oh, my! I was very annoyed when I was testing my game and kept seeing the message, so I thought I’d try all of everyone’s suggestions. And I did, and I found A LOT of viruses. In all, 400 of my scripts was a virus. “GetFenv()’\114\101\113\117\105\114\101’" at least a million of them. So I deleted them all (not by manually) and to my surprise it still showed the message.