I am trying to get plugin with script so i can change it properties and enabled
i created plugin and i want another script to get instance of the plugin but i don’t know how
I thought i can get it with this code print(game:GetService("PluginGuiService"):FindFirstChild("EasyTween"))
but it prints nil
print(game:GetService("PluginGuiService"):FindFirstChild("EasyTween"))
I just did when i created plugin i used ObjectValue and set value as my PluginWidget and it worked very well!
Example:
Script1:
local widget = -- Create Widget
local ObjectValue = ObjectValue
ObjectValue.Value = widget
Script2:
local widget = ObjectValue.Value
widget.Enabled = false --Close widget
system
(system)
Closed
#3
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.