Thanks for looking at this, so here's the problem. I designed the gui already, and my KeyDown event isn't working, here's the local script (NOTE: ITS INSIDE THE GUI, NOT THE FRAME, AND THE PARENT IS STARTERGUI!)
Repeat wait() until game.Players.LocalPlayer
local p = game.Players.LocalPlayer
local m = p.GetMouse ()
local folder = p.PlayerGui:WaitForChild("Pause Gui")
local guitoopen = folder ["StarterGui"]
m.KeyDown:conect(function(key)
If key: lower() == "p"then
If guitoopen.Visible then
guitoopen.Visble = false
Else
guitoopen.Visible = true
end
end
end)

3 comments
"If", "Else" and "Repeat" shouldn't be capitalized...
Ik auto correct on this tablet :L
I'm going to close this question. Please repost the correct code when you can use a normal computer, and also provide some more explanation.