So im making a ClickDetector brick so when you click it the gui pops up its just that the close button doesn't work with FE. the code is
function onClick(click)
for i,v in pairs (script.Parent:GetChildren()) do
if v.ClassName == "ScreenGui" then
c = v:Clone()
c.Parent = click.PlayerGui
end
end
end
script.Parent.ClickDetector.MouseClick:connect(onClick)

3 comments
I don't see any code here that seems to handle closing a gui
Its for a part so the gui in it has the close in it and the close gui closes it.
all you've shown is the gui being cloned into the playergui...did you write anything other than this that is an actual close function for the gui?