I want to make a custom textbox where you can type in your Lua code. But the text of course isn’t Lua and how do you run text from a textbox and actually make it do stuff? I tried searching a bit on the forum but I don’t see any posts about it. In Lua Learning (a game) you also had the ability to type some text and it would actually run in Lua code. So I’m wondering how they did it and if there is an inbuilt feature to do this sort of stuff.
No, I mean that you can have a game. Then when any player goes into the game they can put in code in a textbox and then the game would convert it to Lua code and just run it just like a normal script but then in a textbox.
Well, Yes, You can do it, But you would need to use a Binary String Reader (Used to read code and convert it)
But, A bad thing about creating that is that players can easily paste a exploit/cheat code inside the TextBox and execute it. If your goal is to create a game where players need to write code to proceed/beat the game, You would need to use/create a custom coding environment.
Like @Imaginalities Said, It can be a big risk, As most exploits use loadstring to execute code and get stuff from the Web.
I don’t think so. Btw the encrypted key method doesn’t work as ListKeysAsync exist. I think you can just block the string from being loaded when string.find(thestring, “thing want blocked”) returns true and obfuscated script detection (no idea)