mouse1click Synchronous
Send a primary-button click at the current pointer position. Move the pointer first when the click belongs at a known screen coordinate.
Luau
mouse1click() -> ()Parameters
This function takes no arguments.
Returns
()No values.
Usage notes
The focused interface receives the input; this function does not choose a Roblox object for you.
Example
Luau
if isrbxactive() then
mousemoveabs(240, 160)
mouse1click()
end