Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

Is it possible to convert strings into Lua code?

Asked by 9 years ago

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

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]. TheeDeathCaster 2368 — 9y
0
Ok, so what is it? Octillerysnacker 115 — 9y

2 answers

Log in to vote
1
Answered by 9 years ago

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

loadstring("print('Testing')")

Ad
Log in to vote
1
Answered by 9 years ago

Read this wiki article.

Answer this question