I am trying to make an entity react whenever it hits a door, but its not doing anything when it does,
here is my code:
function ENT:Use( activator, caller )
if (hitEnt:IsDoor()) then
self:Remove()
end
end
what am I doing wrong?