PcoWSkbVqDnWTu_dm2ix
We use cookies on this site to enhance your user experience
Collapse Sidebar

OnScreenKeyboardVisible

UserInputService

bool

This property describes whether an on-screen keyboard is currently visible on the user’s screen.

The code snippet below prints whether the keyboard is visible.

local userInputService = game:GetService("UserInputService")

local keyboardIsVisible = userInputService.OnScreenKeyboardIsVisible
if (keyboardIsVisible) then
	print("On-screen keyboard is visible!")
else
	print("On-screen keyboard is not visible!")
end

As UserInputService is client-side only, this property can only be used in a LocalScript.

On screen keyboard

See also

  • UserInputService/OnScreenKeyboardSize
  • UserInputService/OnScreenKeyboardPosition