So i am trying to do a press e key to open menu and i tried this:
local plr = game.Players
plr.GetMouse().KeyDown:Connect(function(K)
if K == "e" then
script.Parent.Visible = true
end
end
end)
It worked for sometime then i left roblox studio trying to get a x button to work and i came back and it no work anymore... Is there something i need to improve or did i do something wrong?

1 comment
Just be mindful that if u choose to use "e", this will only work on PC, which is why I just use gui to make it accessible on mobile as well.