While in a BillboardGui or SurfaceGui, the InputBegan/etc events of GuiObject (TextBox, Frame, etc) capture mouse input, but not keyboard input. While in a ScreenGui, they are fine. Here’s a quick Repro:
Clickable BGui.rbxl (30.2 KB)
- Enter play solo
- Click BillboardGui in world and notice that events print to output
- Press keys on keyboard while mouse is hovering over BillboardGui and notice that events are not printed to output
- Open PlayerGui.ScreenGui and set the Frame’s Visible property to true
- Repeat the above steps for mouse/keyboard presses and notice both are printed to the output, and not just mouse events
The Guis are both parented to PlayerGui, the BillboardGui is Enabled and has Active set to true, and the Frame is Active and Visible. This happens with any GuiObject, and not just frames.