For some reason, my game got infected with a virus. The virus would teleport to this random guys game. So I thought it would be easy to get rid of. I went into Roblox studio and searched all the scripts in the game for the game id that I got teleported to. Nothing. I then searched for the term “Virus” and other terms that viruses usually use and I didn’t find anything. I put in teleportservice and it didn’t find anything. How could this have happened?
Try searching for getfenv and require. Scripts can get a module via using require(module id). In that module, it has a function that tp’s the player. The modules source cannot be read though unless you actually open up the module.
I have had this happen to a friend from mine before, this is probably a result from free models, where the creators of it have a script inside, that teleports you to their game.
I searched getfenv and require and I can’t find anything suspicious. the only module id i found was hd admin which was the official one.
You should check scripts for require and getfenv.
You can go into game settings to prevent third party teleportations i believe and purchases, so id reccomend turning those off to block the teleporting to toher games.
This is an incredibly lazy fix but I do suggest you use it for the time being until you figure out the root cause of the problem.
In Roblox Studio for the place, open the home tab at the top, from there go to game settings, then into security, then ensure that third party sales and third party teleports are both disabled. Those should both hopefully stop the actual teleportation itself, but that doesn’t mean you’re 100% safe as whatever is causing the teleports will still be in your game. This is just something to do so you can stop the teleports whilst continuing to look for the cause.
Roblox Studio > Home Tab > Game Settings > Security > Disable Third Party Teleportations / Sales