A group has asked me to fix a problem where a player is unintentionally removed and once removed, automatically rejoins the game. They said that it happens randomly. I’ve looked through many of the scripts and nothing looks suspicious to me. I have no idea how this would happen nor can I replicate it myself when testing.
If anyone could give me some ideas that would be appreciated. Or if someone could look into the game itself that would be awesome. But any ideas here would be most welcome.
Check your TeleportService related code if you have any.
Thats the likely only way they can rejoin.
This is caused by a plugin that inserts a script that teleports the player to another game then teleports the player back the the normal game. I recommend checking all your plugins and only instal plugins that are made by trusted developers.
These type of errors mostly happens because of malicious scripts in models or plugins, you will have to delete or check each unknown or unwanted script. If the problem still occurs delete your plugins which are from untrusted sources.
Thanks for the replies. If it is in a plugin and the place is on team create, do I have to check all of the developers’ plugins?
Yup you will have to ask them to delete unwanted plugins or check their inventory.
This might possibly be a backdoor In your game, which Teleports players to a Game To remove this backdoor If you have one check your plugins for any Malicious plugins, and check all your game scripts by going to View > Find Results > Click the Binoculars Icon and search “require” or “getfenv” and remove any scripts, With require or getfenv In them.