Is it better to use UIS or Mouse.Button1Down?

I am making a combat system where the player clicks left click to punch, but I am not sure what would be more efficient. Should I use the UserInput service or the Player:GetMouse() command?

UserInputService offers the same functionality by checking the UserInputType from the InputBegan event, while also letting you handle different inputs which you might want for your combat system.

1 Like

Personally I use ContextActionService because it lets me bind and unbind inputs more conveniently than UserInputService. It makes handling multiple inputs easier as well since with UserInputService all inputs fire the InputBegan event, but with ContextActionService you can bind callbacks to specific inputs.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.