How to execute scripts with a plugin without using loadstring()

I just came up with something
You can just create a ModuleScript with source and require it through the plugin script resulting in exectuion

local Script = script.Script

local NewScript = Instance.new("ModuleScript")
NewScript.Source = Script.Source .. "\nreturn"
NewScript.Parent = script.Parent

require(NewScript)
1 Like

there is an alternative, add popup that tells you have to enable loadstring if it’s not enabled

have you tested it??? or not? because this might be patched as well

i just did and it seems to work just fine

1 Like

that’s the thing. loadstrings aren’t allowed in plugins

Also, maybe offtopic, but how do you managed to add textbox lines to editor? You use text scaled or smth?