I have this:
function ENT:Think() self:SetAngles(self:GetAngles() + Angle(0,0.1,0)) self:NextThink( CurTime() ) return true end function ENT:Touch(ent) if ent:IsPlayer() then ent:Kill() end end
in my entity’s init.lua
In-game this entity is just a spinning bar that kills you when you touch it. However, this bar doesn’t kill you if it rotates into you, you’ll just get stuck until it moves out. It will only kill you if you move into it. How could I fix this?