Im new to coding so please don't judge. The code i wrote in the part is :
script.Parent.ClickDetector.MouseClick:connect(function(player) player.PlayerGui.ObbyGui.Enabled = true end)
The name of the screen gui is ObbyGui btw. This was wrote in a local script in workspace.

2 comments
I don't think you can insert local scripts inside parts...
You can