I am trying to make a GUI visible if someone hits the letter Q on there keyboard and if they hit Q again the GUI is not visible I cant figure out how to do this though I have tried using (“UserInputService”) which I think is right.
Script
local UIS = game:GetService(“UserInputService”)
local GUI = script.Parent.GunShop.Frame
UIS.InputBegan:Connect(function()
if UIS.InputBegan.KeyDown == Enum.Q then
GUI.Visible = true
end
end)
OutPut Errors
Keydown is not a vald member of RBXSignal
Note: The scripts name is KeyDownOpenScript and its in ScreenGui
Any help is appreciated greatly