How should I make a sytem for filtering scripts with malicious content

Hi, I want to make the players of a game potencialy beeing able to inject scripts to mod the game.
It turns out, that is very difficult because how should I stop people from accessing intancet they shouldent touch?
My options:

  • create a lua compiler (safest)
  • let the script accses a array and change what the script changes in the array.
  • or there is some macical way to do it

What would be the best option to do?

No one tryed doing this before and i couldent find any helpfull content.

thank you!

1 Like

It’s impossible to create a game of this type without any ‘report’ function or a single moderator to check players’ work.