Edit a script/modulescript in a plugin

Im making a plugin for my dev team so its easier for everyone to create guns whenever they like for our game, because in creating a gun, cframes and vector3 values etc are used for gun position and aiming that builders and game designers etc wouldn’t understand.

All gun settings are found inside a modulescript. How would you code a plugin to change a modulescript/script text inside?

You can use this property to set the source of the script container:
http://wiki.roblox.com/index.php?title=API:Class/Script/Source

Or use this to open up a script in the editor: (in case you need it)
http://wiki.roblox.com/index.php?title=API:Class/Plugin/OpenScript

3 Likes

how? the link is not available

Those are old documentation site links. You can also find the members on the new documentation site. Google is your friend, but here I’ll do it for you this time:

3 Likes