Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

Plugin GUI help? [UNANSWERED]

Asked by 9 years ago

I have this code as well as a GUI inside the plugin, how do I set it so the person using the plugin can see the ScreenGUI?

local hasLoaded = plugin:GetSetting("pluginHasLoaded")
if not hasLoaded then
    print("Welcome to Basic Object Changer! To use, just click on the thing you want to change then click the button that you want to change it to!")
    plugin:SetSetting("pluginHasLoaded", true)
end

local toolbar = plugin:CreateToolbar("Basic Object Changer")

local button = toolbar:CreateButton(
    "Basic Object Changer",
    "Click to use",
    "http://www.roblox.com/asset/?id=145723965"
)

button.Click:connect(function()
    plugin:Activate(true)
    print("Plugin Activated!")
end)

I apologize in advance for the trouble I make.

2 answers

Log in to vote
1
Answered by
KAAK82 16
9 years ago

clone() the Gui into the game.CoreGui. Should Work! I have a Plugin, it works...

0
Ok thanks so much! CardboardRocks 215 — 9y
0
np ;) I* remember I looked fo8r Help, so now I thought maybe I should Help KAAK82 16 — 9y
0
YES IT WORKED! xxracerdudexx 75 — 8y
Ad
Log in to vote
-1
Answered by 9 years ago

Add the GUI you want into the plugin script, and then put in a Frame, then put this code in the plug in script:

button.Click:connect(function()
script.GUI.Frame.Visible = true
end)
  • This should work, or not, I didn't test it...
0
It's already visible, but it's in a model in the workspace. Should I put the model somewhere else and it would work? CardboardRocks 215 — 9y
0
Well I forgot to say that the frame's Visible needs to == false at first... TheDarkOrganism 173 — 9y
0
Ok I'll try that. CardboardRocks 215 — 9y
0
Didn't work :/ CardboardRocks 215 — 9y

Answer this question