GetActiveWeapon() == "Gravity Gun" ???

So i’m working on the ammo for my hud and i want the hud hidden if the camera or gravity gun is out, i used this code for the camera and it worked perfectly:

client:GetActiveWeapon() == "Camera"

but if i do the same for the gravity gun:

client:GetActiveWeapon() == "Gravity Gun"

It doesnt work, any input would be appreciated.

Try printing the results from client:GetActiveWeapon() to get the name it uses

client:GetActiveWeapon():GetClass() == "weapon_physcannon"

Thank you :slight_smile: