local function HolsterScript( target, dmginfo ) if ( target:IsPlayer() and dmginfo:IsBulletDamage() ) then target:PrintMessage( HUD_PRINTCONSOLE, "say /holster" ) end end hook.Add("PlayerTraceAttack", "holsterscript", HolsterScript)
Anyone know why this isnt working? The goal is to make me say /holster when i take bullet damage. Thanks in advance. I couldve used EntityTakeDamage, but it was serverside and im trying to make a clientside script.