Issue resolved
local Humanoid = script.Parent:FindFirstChild("Humanoid")
function onKeyPress(inputObject, gameProcessedEvent)
if inputObject.KeyCode == Enum.KeyCode.Q then
Humanoid:UnequipTools()
end
end
game:GetService("UserInputService").InputBegan:connect(onKeyPress)

2 comments
That works, many thanks. I had it in StarterGui out of habit.
No problem bro