How to make anti require script that is runned through devconsole?

I wonder how to make anti require script that runned through devconsole, I need to know because my devs are going krazy using it :sob:

You want to stop them from using require?

1 Like

use InputBegan from userinputservice and the player.Chatted event to detect the f9 keypress or typing /console in the chat

then kick using player:Kick()

1 Like

why would you kick for either of those though

1 Like

stop them from using the console

1 Like

yes yes yes yes yes yes yes yes yes I want them to stop using require

1 Like

no, i want something like they can use the console, but if they run require() they’ll be kicked.

1 Like

Why? What’s so bad about them using require to make their lives easier?

1 Like

trolling as some people require module scripts from the market place psa it impossible to stop them from running a require in the dev console but it is possible to remove their server acess to devconsole so they cant run commands

1 Like

using userinputserice:

start listening on the f9 keypress or a /console message in the chat

listen for ‘r’, ‘e’, ‘q’ keys and so on consecutively

kick if they type require

why not just tell the devs to not use require or else they will lose access to the console
also if you added it as a local script they can still remove it and use the console with exploiting or editing the game and removing the anti require script

You can just read the output of a command in the DevConsole. This allows you to read if “require” was called.

2 Likes

Find more professional developers.