So I am trying to make a keybind for a crowbar weapon. Only problem is that the UserInputService is just not firing? I tried everything! It has no errors in the output and does not print “TEST”.
Script:
local UIS = game:GetService("UserInputService")
local CrowbarEquipped = false
local EquipDebounce = false
UIS.InputBegan:Connect(function(Key)
if Key == Enum.KeyCode.Q and CrowbarEquipped == false and EquipDebounce == false then
print("TEST")
end
end)
Can someone please help me? I have tried to figure this out for about an hour now. :I