this works
take it if u want in a GLOBAL SCRIPT in a GUI
plr = game.Players:FindFirstChild(script.Parent.Parent.Parent.Name)
mouse = plr:GetMouse()
local function onKeyDown( key )
if key == "q" then
print("omg ily")
end
end
mouse.KeyDown:connect(onKeyDown) |