This is what i tryed Ik it sucks
function onclickedofheader() player = workspace:FindFirstChild(player) game.player.PlayerGui.ScreenGui.Frame.Visible = true end
workspace.Header.ClickDetector.MouseClick:connect(onclickedofheader)
How do i get the PlayerGui when they click a part?
local brick = script.Parent local click = brick:WaitForChild("ClickDetector") click.MouseClick:connect(function(player_who_clicked) local player = game.Players:GetPlayerFromCharacter(player_who_clicked.Character) local gui = player.PlayerGui:findFirstChild("ScreenGui") if gui then gui.Frame.Visible = true end end)