I have a part that, when clicked, will clone a child gui to the player's gui. I have tried multiple screen guis, and they all work, except for my actual gui that I created. That one just doesn't appear, even though every other gui works fine with the part.

The part's code:

function boop(Player)
	if not Player.PlayerGui:FindFirstChild("Gui") then
		local gui = script.Gui:clone()
		gui.Parent = Player.PlayerGui
	end
end
script.Parent.ClickDetector.MouseClick:connect(boop)

Reference photo of my explorer here

Thanks, -Mex

3 comments

2

Hello! This is weird, it should work.

1

Is there anything that could be going wrong?

1

Found it. The frame needed to be visible from the start to be able to be seen when cloned. My mistake :p