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

Are there any decent alternatives to loadstring()?

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!

5 comments

0

A plugin should not be made in a local script.

0

Whenever I create a plugin inside of a normal script, it tells me that it can't run unless it's a localscript.

0

Can you include that code.

0

http://wiki.roblox.com/index.php?title=Tutorial:Plugins "A plugin will not run Local Scripts" Create Script line 2.

0

That's really strange. I've created over 10 localscript plugins in the past, and they all work fine.

1 answer

✓ Accepted answer

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.

1 comment

0

I guess I have a summer project. Thanks xD

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