I really don't know what is wrong with this but I tried 2 times to get it right. :/
Not sure if I got the ' script.Parent.MouseButton1Down:connect(function() ' wrong. ;/
script.Parent.MouseButton1Down:connect(function()
game.StarterGui.ScreenGui.Frame.Visible = true
wait(9)
game.StarterGui.ScreenGui.Frame.Visible = false
end)
Here's my second try.
script.Parent.MouseButton1Down:connect(function()
script.Parent.Frame.Visible = true
wait(9)
script.Parent.Frame.Visible = false
end)

3 comments
Hmm, I think I might know the issue.
StarterGui is not active. Second one should have worked.
The second one should work. You shouldn't use StarterGui to set Gui's for players.