To expand on the question, I want to find if same weapons are in the backpack (eg. two guns) and destroy all but one of them. Example of destroying a weapon (but doesn't detect if there are two or more of the same weapons in the Backpack/Startergear):
if player.Backpack:FindFirstChild("M4A4")
player.Backpack.M4A4:Destroy();
end

2 comments
Thanks! Just a note for anyone using the script, it remove the weapon after death (for me at least)
Forgot to add but this script realys of the tool name being different so if there a two tools with the same name but each tool is different then one will be deleted.