I have a part in my game that when clicked on, checked using a click detector, the gui 'ScreenGui' should enable. However, I simply get an error that states 'ScreenGui is not a valid member of PlayerGui'. Filtering is enabled.
script.Parent.ClickDetector.MouseClick:connect(function(playerWhoClicked)
local player = playerWhoClicked
player.PlayerGui.ScreenGui.Enabled = true
end)

3 comments
It says:
It outputs an error, stating that there's an infinite yield possible.
Then screenGui isn't in PlayerGui