I took a break from LUA for a while, I forgot how to find players through scripts. So I am trying to make an interaction with certain areas, so I need to find the player who set off the script. Any help from anyone will be noble.
script.Parent.ClickDetector.MouseClick:connect(function(player)
player.PlayerGUI.Crack.Frame.Visible = true
end)
Output PlayerGUI is not a valid member of Player
Please help me with my problem.

2 comments
PlayerGui instead of PlayerGUI
They mark me down but I don't see ether of them answering the question.