Is there a difference between using GuiObject.InputBegan and UserInputService.InputBegan?

I’m creating UI for my game and don’t know if there is a difference between them. Don’t know if this is a stupid question but better safe than sorry.

I believe the difference is that UserInputService.InputBegan is for general input, not specific to any GuiObject—for instance, the E key on your keyboard—while GuiObject.InputBegan is for interacting with that specific gui object.

1 Like

GuiObject.InputBegan seems to be easier to use as I don’t need to make sure I’m hovering over the GuiObject to detect input.

1 Like

Yep, that’s the purpose of it!

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