--This was probably a mistake do return end local pmeta = FindMetaTable("Player") pmeta.buffs = {} local buffid = 0 function pmeta:ApplyBuff(buff) if self.buffs[buff.type] == nil then self.buffs[buff.type] = {} end local id = buffid buffid = buffid + 1 self.buffs[buff.type][id] = buff self.buffs[id] = buff.type return id end function pmeta:RemoveBuff(buffid) local bufftype = self.buffs[buffid] self.buffs[buff.type][buffid] = nil self.buffs[buffid] = nil end hook.Add("EntityTakeDamage","arterybuffs",function(ent,info) end) --[[ Add buff types here I guess ]]