So I have a script inside a block and when you touch it pops up a gui, there is a Gui in the block and its cloned and put it into your PlayerGui but when you close it, it deletes the screengui in your PlayerGui and the one in the brick is still there. But when I touch it again it does not work. it does not pop anything up. Help?
script.Parent.Touched:Connect(function(hit) local player = game.Players[hit.Parent.Name].PlayerGui if not player:FindFirstChild("Box") then local d = script.Parent.Box:Clone() d.Parent = player end end)