Is it possible (and allowed) to have some way for players to add/inject their own scripts in-game?

I do not recommend doing this Alternatively, I recommend creating a block system that’ll create a type of script. This will allow you to have control over what players can script and what they can’t script such as malicious injections with requires or other types of malicious acts.