local UserInputService = game:GetService("UserInputService")
local isPressed = UserInputService:IsKeyDown(Enum.KeyCode.E)
if isPressed then
script.Parent.Visible = true
else
script.Parent.Visible = false
end
I get no errors when I test it, but nothing happens when I press the KeyCode

1 comment
I want this to function where the menu appears on the screen while the specified key is being pressed, then dissapear as soon at the key is no longer being pressed.