Plugin GUI replicated in CoreGUI, how to get it out

Hey guys, i have an issue. In the journey to make my first plugin, I made a gui for it and read on another devforum, that you had to replicate it to the “CoreGui” in order to use it within studio. Using this (a snippet of the code, since the rest of it isn’t really relevant)

local function MakePluginGui()
	Gui.Parent = game.CoreGui
end

I have done just that. However i am unable to remove it from the CoreGui, and i’ve got myself into a predicament. Can anyone inform me on how to do that? Also, how can i make it so that if you press the plugin again, the gui disappears. Is there a button deselect function? Thanks for all help and advice in advanced

2 Likes

Restarting Studio got rid of it