I am having trouble making a brick that when you click on it. Opens up a gui. But for some reason. When I try to put in the code which is.
local function click(playerr)
playerr.PlayerGUI.ScreenGUI.Frame.Visible = true
end
script.Parent.Notecheck.MouseClick:Connect(click)
And I keep getting this error
PlayerGUI is not a valid member of Player
Is there anything that can fix this issue?

7 comments
Thank you very much. It actually works now. Thanks for your help.
nice, please accept the answer then
I wonder if lots of answers go unaccepted on this site because new users do not know how to accept answers?
Because it's scummy to remind users
How so? I put in effort and take some time to help people out with their problems, the least they can do is accept the answer, how is that even remotely scummy? I dont get your logic here tbh
I saw your post on the forum about accepting answers, please re-read this statement said by the moderator "Users are supposed to accept an answer if it helped solve their problem, but a lot of them today won't, hence the need for a reminder."
@incapaz I already talked to you about this lol