Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Is it possible to convert strings into Lua code?

Is it possible to convert strings into Lua code? I'm wondering if this is possible because I see in things like ScriptBuilder places it uses chat to create a script, but as far as I know the function used for that creates a string instead of actual code. So does anyone know if it's even possible?

EDIT: If you know how then please post it in your answer, thx :D

2 comments

0

It is possible, but Roblox has done an Update where you can not do it Client-Sided [From a Player], only Server-Sided now [Like in the Workspace].

0

Ok, so what is it?

2 answers

✓ Accepted answer

It can be done server-side, but you must enable a LoadString property which is pretty clear in ServerScriptService.

loadstring("print('Testing')")

This discussion is preserved as it was. New answers, comments, and votes are closed.