(Edit) If somebody searches this in the future:
Input Action System doesn’t check for processed like UserInputService does.
use UserInputService for this
local uis = game:GetService("UserInputService")
uis.InputBegan:Connect(function(input, processed)
if input.UserInputType == Enum.UserInputType.MouseButton1 and not processed then -- the processed parameter is used to determine whether the input is superseded by a core roblox element such as gui (boolean)
print("player pressed mouse 1")
end
end)
1 Like
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.