So I've been having some trouble with my script recently. I made a part with a click detector and inserted a script into the click detector so that it would open a GUI. This is the script:
script.Parent.MouseClick:connect(function() game.StarterGui.CODEN.VERIFICATION.Visible=true end)
--CODEN is the screen GUI and VERIFICATION is the frame
Please PM my profile(YieldingSweetblade) to contact me about this. You have to follow me to message me (feel free to unfollow me once you are done).

2 comments
Actually, forget the whole PM part. You can answer in the comments.
Addition to Thee's answer, it's more efficient to do things on Local for Gui's health. Put a LocalScript in Gui, give a specific name to object that holds clickdetector, then connect it via there.