Maybe I’m just missing something really obvious here, but here is where I don’t under stand.
local user = LocalPlayer()
if !user:GetActiveWeapon() or !user:Alive() then return end local wep = user:GetActiveWeapon():GetClass() --code
hook.Add(“HUDPaint”, “WeaponHud”, WeaponHud)
For some reason when I die I am getting a error because user:GetActiveWeapon():GetClass() is NULL, but it shouldn’t have even gotten to that part of the code if I’m dead right?