local GiveDieChildren = game.StarterGui.GiveDie:GetChildren()
game.StarterGui.GiveDie.later.MouseButton1Click:Connect(function()
script.Parent.Parent.GiveDieChildren.Visible = false
end)
The local script is inside a text button inside the screen gui which when the text button is pressed it makes all the screen guis children become invisible

2 comments
@OP, sorry my mistake please follow what this guy corrected above. :)
i gave u the answer because i noticed your reputation was low