'How can I execute lua code without using loadstring?

I want to be able to execute lua code without using loadstring. If anyone could help that'd be amazing



Solution 1:[1]

The only possible way to execute code through a script is using loadscript, if you want to execute code through presets, I suggest you research ModuleScripts

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Cmb