How can I get the code in a script with a plugin?

I’ve tried using script.Source, and that didnt work, but I cant seem to find any other ways of doing this. I’ve searched around for a bit but still cant find no nothing.

Any ideas?

1 Like

" If you want to read or modify the source of a script that a user has open, use ScriptEditorService to interact with the Script Editor rather than directly modifying this property. Both ScriptEditorService:UpdateSourceAsync() and ScriptEditorService:GetEditorSource() can read or modify script content from the script editor if the script is opened. You can also read the source from the command line."

from here

or maybe you didnt give the plugin the right permissions

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.