September 20, 2022


local event = Entity:GetEvent("OnCollisionEnd")


Triggered when the entity ends collision.

Callback function parameters

Type Name Introduction
Entity selfEntity Current Entity
Instance other The other instance that stopped collision

Code Example

Register the entity collision end event in the server side, place a few Parts in the map, and end the collision with the Parts to trigger the event

-- Player is a player entity, and the acquisition process is omitted here
local player

local event = player:GetEvent("OnCollisionEnd")
event:Bind(function(selfEntity, other)
    print("OnCollisionEnd!", selfEntity, other)