I’m basically activating a tool with a right click although want it to be activated on one up (full click) rather than one down (half click).
This is what I am currently using Key.UserInputType == Enum.UserInputType.MouseButton2
. Any suggestions?
I’m basically activating a tool with a right click although want it to be activated on one up (full click) rather than one down (half click).
This is what I am currently using Key.UserInputType == Enum.UserInputType.MouseButton2
. Any suggestions?
local userInput = game:GetService("UserInputService")
userInput.InputEnded:Connect(function(key, processed)
if processed then
return
end
if key.UserInputType == Enum.UserInputType.MouseButton2 then
print("Right mouse button clicked!")
end
end)