mouse1press Synchronous
Press and hold the primary mouse button at the current pointer position. Pair it with mouse1release for a drag or another held-button interaction.
Luau
mouse1press() -> ()Parameters
This function takes no arguments.
Returns
()No values.
Usage notes
Move the pointer separately; this call only changes the button state.
Synthetic input goes to the Roblox game surface, not to Android dialogs or other app views.
Example
Luau
if isrbxactive() then
mouse1press()
mousemoverel(20, 0)
mouse1release()
end