Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

roblox-input

БесплатноБез исполняемых скриптовНе проверен

Use when building, fixing or reviewing Roblox input: touch, gamepad, keyboard/mouse, action buttons, key binds, Input Action System.

TabooHarmonyот TabooHarmony★ 230 звёзд на GitHub

Об этом скилле

Roblox Input

When to Load

Handling touch, gamepad, keyboard/mouse or TV-remote input: binds, on-screen action buttons, cancel paths, button hints. Layout, safe areas, touch-button placement from TouchGui and gamepad focus graphs: roblox-ui (§1, §2); aim and shoulder cameras: roblox-camera; sending input to the server: roblox-networking.

"Field case" = seen in one of the owner's projects; verify on your content.

Traps and review checklist (symptom -> cause -> fix)

  • Key bind does nothing or opens a Roblox panel -> it collides with a default bind. Always reserved: Esc/ButtonStart (Roblox menu), F9, F11, F12, PrintScreen. Reserved unless you disable the feature: / chat, Tab player list (CoreGuiType.PlayerList), backquote backpack, 0-9 tool equip, Backspace drop tool, \ UI selection, Shift mouse lock (EnableMouseLockOption); gamepad ButtonL1/ButtonR1 swap tools, ButtonR2 uses the tool, ButtonSelect UI selection. Never put a core feature on backquote (missing on many layouts), and every keyboard-opened panel also needs a tap button for touch (field case) (§1).
  • Interactive SurfaceGui buttons ignore clicks -> the SurfaceGui must live under PlayerGui (Adornee = the part), and the adorned part needs CanQuery = true, or input never reaches the button. Mounting it right is not enough if the sign part is CanQuery = false.
  • Cursor trapped in a menu in first person / shift-lock -> a visible GuiButton with Modal = true overrides MouseBehavior (unless right mouse is held), but the icon can stay hidden and per-frame camera code re-locks it. Set MouseIconEnabled = true too, drive both from one "any menu open" state that the camera code also reads (per-screen mouse code left invisible cursors and locked cameras, field case, repeated), restore on close, and close with a key and gamepad B (§1).
  • Clicks dropped near a proximity prompt in a locked-mouse game -> ClickablePrompt = true (default) puts the prompt button under the centred cursor; it sinks MouseButton1 (gameProcessedEvent = true) and drops held actions (field case). Set ClickablePrompt = false when the prompt is created (in PromptShown was too late); tap still works on mobile per the docs.
  • Touch buttons show on a PC, or stay after plugging in a pad -> layout picked once from TouchEnabled. Show controls from UserInputService.PreferredInput and re-run on GetPropertyChangedSignal("PreferredInput"). GetLastInputType() flips on every input and reports Focus on window focus; don't drive layout from it.
  • TV remote not detected -> Enum.PreferredInput.MicroGamepad exists but is not set yet for these devices . Check Gamepad1 connected and GamepadSupports false for both Thumbstick1 and Thumbstick2 (ButtonCenter too for a TV remote). Never detect by keycode: centre arrives as ButtonA, back as ButtonB, arrows as D-pad in menus but Thumbstick1/Thumbstick2 in gameplay, same as a full pad.
  • Controller stuck in a menu -> the gamepad button that opened the menu is still bound and swallows navigation. Menu binds must Pass (or their context be disabled) while any window is open; the D-pad that opened a window can't close it (it moves focus there), so close with B. Third-party top-bar libraries may listen on raw InputBegan for D-pad Up. Focus graph: roblox-ui §2.
  • Attack fires under a menu, or jump dead after closing one on gamepad -> gate every gameplay handler on one check: gameProcessedEvent, GetFocusedTextBox() == nil, not GuiService.MenuIsOpen, GuiService.SelectedObject == nil, no game window open. CAS handlers get no gameProcessedEvent.
  • Charged throw fires when the player cancelled -> cancel is not release. Cancel (never complete) on UserInputState.Cancel, window open, unequip/death, WindowFocusReleased, a PreferredInput change, or GamepadDisconnected of the pad that started the hold (poll that pad, not Gamepad1). CAS delivers End/Cancel (and touch-button input) with KeyCode.Unknown: branch on state before any keycode filter.
  • Gamepad R2 stopped firing the tool -> Tool.ManualActivationOnly = true also kills the BindActivate route the default controls use for ButtonR2. Set it from PreferredInput, not TouchEnabled.
  • Gamepad/touch shots go to a stale point -> aim code reads GetMouseLocation(). With PreferredInput not KeyboardAndMouse or the mouse locked, aim from the viewport centre and show the reticle (roblox-camera).
  • Wrong glyph or "Press 1" on console -> hardcoded key names. Use GetStringForKeyCode(key, Enum.KeyCodeStringFormat.Abbreviated) / GetImageForKeyCode(key) (separate PlayStation and Xbox image sets; Studio emulation returned PlayStation in a field case) or InputActionLabel; refresh on PreferredInput change, including tooltips and tutorial text. Hotbar cycles on ButtonL1/ButtonR1, not number hints.
  • **Feels like
Полный SKILL.md на GitHub

Установить roblox-input в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл roblox-input?

Use when building, fixing or reviewing Roblox input: touch, gamepad, keyboard/mouse, action buttons, key binds, Input Action System.

Как установить скилл roblox-input?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл roblox-input запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить roblox-input с