How can i get plugin gui with script? [SLOVED]

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
image

   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

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