How to post gui

I want to make a plugin, which makes gui inside starter gui, and since the gui have some functions, i need to add local scripts to the buttons, but how do i do it, like can i say loadasset and it will load a model of local scripts, how do i do it

1 Like

You can add a LocalScript normally using Instance.new(), and you can set it’s content using Script.source (note that this property is only modifiable through plugins).

the script.source is very big script, i cannot just type like this

script.Source = print|("hi")

since print is 1 line script, i can do it, but the local script have 101 lines and its not just 1 local script

You can maybe keep a clone of LocalScript inside the Plugin ScreenGui or something, and then clone it and parent it to the PlayerGui wherever it’s needed.

I tried to do it, but it says LocalScript is not valid member of PluginScript

When you publish script, its actually not taking its children