Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Plugin GUI help? [UNANSWERED]

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

✓ Accepted answer

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

3 comments

0

Ok thanks so much!

0

np ;) I* remember I looked fo8r Help, so now I thought maybe I should Help

0

YES IT WORKED!

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...

4 comments

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?

0

Well I forgot to say that the frame's Visible needs to == false at first...

0

Ok I'll try that.

0

Didn't work :/

This discussion is preserved as it was. New answers, comments, and votes are closed.