Input
Keyboard, mouse, clipboard, and window input.
Functions
isrbxactiveCheck whether the Roblox host window currently has focus. It helps a script avoid sending local input while the user is in another app.
keyclickSend one complete press-and-release key event. It is the simple choice for a tap when there is no reason to hold the key.
keypressSend a key-down event and leave that key held. Use it for an intentional hold, then send the matching keyrelease even if the work in between fails.
keyreleaseSend a key-up event to finish a hold started with keypress. Use the same virtual-key code as the original press.
messageboxOpen a system message dialog and wait for its button result. Use it for a decision that should be explicit before the script continues.
mouse1clickSend a primary-button click at the current pointer position. Move the pointer first when the click belongs at a known screen coordinate.
mouse1pressPress and hold the primary mouse button at the current pointer position. Pair it with mouse1release for a drag or another held-button interaction.
mouse1releaseRelease the primary mouse button. Call it after mouse1press so a drag or hold ends cleanly.
mouse2clickSend one secondary-button click wherever the pointer currently sits. It is useful for opening a context action in a focused interface.
mouse2pressPress and hold the secondary mouse button. Use this when the receiving interface distinguishes a held secondary action from a quick click.
mouse2releaseSend the button-up event for the secondary mouse button. This ends a hold begun with mouse2press.
mousemoveabsPlace the pointer at an absolute screen coordinate before another local input action. This moves the pointer without pressing a button.
mousemoverelNudge the pointer by an offset from wherever it is now. This is easier than calculating an absolute coordinate for small adjustments.
mousescrollSend a wheel movement to the focused interface. Use it for a list or panel that already responds to mouse-wheel input.
setclipboardPut text on the Android clipboard so the user can paste a result into another app. This replaces whatever clipboard text was there before.