Skip to content

collision

LLEvents:on("collision", function(NumberOfCollisions: number)
-- ...
end)

This event is raised while another object, or avatar, is colliding with the object the script is attached to.

The number of detected objects is passed to the script. Information on those objects may be gathered via the llDetected* functions.

Parameters
NumberOfCollisions (number)

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

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