manage_input
Simulate player input in Roblox Studio to verify interactions: clicks, keys, typing, and character movement.
Instructions
Simulate input. In playtest: walk_to (Humanoid:MoveTo a path/position), click_world (VirtualInput at a 3D instance screen pos), walk_and_click (walk then click — use this to verify world clicks), click_at (viewport pixels), click_path (PlayerGui GuiButton), key, type_text. Clicks use UserInputService:CreateVirtualInput, not VirtualInputManager. In edit: click_path uses VirtualInput plus a LastClick attribute on the ScreenGui.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| key | No | Enum.KeyCode name, e.g. E, Space, W | |
| path | No | 3D instance (walk_to/click_world) or GuiButton (click_path) | |
| text | No | ||
| action | Yes | ||
| timeout | No | Walk timeout seconds (default 8) | |
| duration | No | ||
| position | No | Optional [x,y,z] walk target if path is omitted | |
| standOff | No | How far to stand from the target when walking (default 4) |