How do I make script that check if any player has scripts don't exist in game

Ok so I am trying to make script that check if player has any scripts not in game basically if any exploiter uses stuff such as fly scripter he will need to use local script but it do not exist in game so I want to make script that check if there is any player got any script ever but do not exist in game basically a script was inserted into his playerscripts but the source is unknown which means not from StarterPlayerScripts or StarterCharacterScripts

Is there a way possible for that? I am trying also to patch JJSploit cause my game have problems with basic hackers which is flying.

You can’t really detect exploits scripts, for example because exploits are able to run lua without needing a script instance.

What you can do to prevent people from flying is ex. check if their humanoid state changes to an unordinary one (since it replicates to the server), add a height limit (account for flings), limit the time a player can spend in the air (account for falling/jumping), and so on.

2 Likes

I don’t know how to do those I am bit beginner as a game developer I have some scripting knowledge but I still don’t know how to do that

EDIT: I know how to check their humanoid states but not the other things you’ve said