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

Are there any decent alternatives to loadstring()?

Asked by 7 years ago

Okay, so at this point, using loadstring() is the equivalent of selling your soul. However, I want to make a command-prompt-style plugin that uses this feature. Unfortunately, loadstring() does not work in Local Scripts, which is what plugins must be made inside of. Are there any good alternatives to loadstring() that I can use from a Local Script? Any help is appreciated!

0
A plugin should not be made in a local script. User#5423 17 — 7y
0
Whenever I create a plugin inside of a normal script, it tells me that it can't run unless it's a localscript. ChipioIndustries 454 — 7y
0
Can you include that code. User#5423 17 — 7y
0
http://wiki.roblox.com/index.php?title=Tutorial:Plugins "A plugin will not run Local Scripts" Create Script line 2. User#5423 17 — 7y
0
That's really strange. I've created over 10 localscript plugins in the past, and they all work fine. ChipioIndustries 454 — 7y

1 answer

Log in to vote
1
Answered by 7 years ago

No. Roblox no longer includes the Lua compiler in the Roblox client anymore, so loadstring no longer exists.

The only way you could recreate loadstring in Roblox is to recreate Lua in Lua. Good luck with that.

0
I guess I have a summer project. Thanks xD ChipioIndustries 454 — 7y
Ad

Answer this question