Hello, I’ve been working on a vr game for fun but for some reason the trigger detection doesn’t work. The function prints the same keycode for the trigger but when I try to print the statement for the trigger, it doesn’t work.
Code I'm using
In a local script:
local uis = game:GetService("UserInputService")
function printinput(input, _gameProcessed)
if input.UserInputType == Enum.KeyCode.ButtonR1 then
print("Bottom right trigger")
end
print(input.KeyCode)
end
uis.InputBegan:Connect(printinput)