Skip to content

touch

LLEvents:on("touch", function(NumberOfTouches: number)
-- ...
end)

This event is raised while a user is touching the object the script is attached to.

The number of touching objects is passed to the script in the parameter.

Information on those objects may be gathered via the llDetected* library functions.

Parameters
NumberOfTouches (number)

Add example usage here showing how to handle the touch event in SLua/Luau.

Add additional notes, caveats, or tips specific to using this event in SLua/Luau.