This is what I have:
function onClicked(playerWhoClicked)
local player = game.Players:GetPlayerFromCharacter(playerWhoClicked.Parent);
player.PlayerGUI.Elevator.Frame.Visible = true;
end
script.Parent.ClickDetector.MouseClick:connect(onClicked)
I just want the GUI to be visible when you click the part.
