How can I detect if MB1 was pressed?

local frame = script.Parent.Parent.userInterface.badgeFrame
local player = game.Players.LocalPlayer
local mouse = player:GetMouse()

frame.InputBegan:Connect(function(input)
	if input == Enum.K
end)

the if statement

if input.UserInputType == Enum.UserInputType.MouseButton1 then
    -- do stuff
end
3 Likes