I'm trying to use the user input service to detect when the player has made a left click, this is the code that im using:
local function CheckInput()
if (UserInputService:IsMouseButtonPressed(Enum.UserInputType.MouseButton1)) then
--blah blah blah
end
end
UserInputService.InputBegan:Connect(CheckInput)
This works fine with one problem; if the player holds down left click, ANY input on the keyboard will trigger the function. Is there any way to connect to an event for only mouse button 1 clicks? Or just any workaround in general?
