So, I am trying to make a script for a click button that, when clicked, moves a GUI from Lighting to StarterGui. When I test it, no errors pop up in the Console, and the GUI does move to StarterGui according to the Explorer, but it does not show up at all. When I check it in StarterGui, Visible is enabled and none of the transparencies are equal to 1, but it will not show up.
function onClicked()
if game.Lighting.TermCap.Parent ~= nil then
game.Lighting.TermCap.Parent = game.StarterGui
wait(.1)
game.StarterGui.TermCap.Frame.Visible = true
else end
end
script.Parent.ClickDetector.MouseClick:connect(onClicked)

1 comment
Just had to put the :connect function in there, and now it works!