character.ChildAdded:Connect(function(M)if CollectionService:HasTag(M,"\071\117\110")then SetupGUIForHeldGun(M)if#primaryWeaponSlot:GetChildren()==0 then weapon1Label.BackgroundColor3=onColor weapon1Label.Text=M.Name elseif#secondaryWeaponSlot:GetChildren()==0 then weapon2Label.BackgroundColor3=onColor weapon2Label.Text=M.Name end elseif CollectionService:HasTag(M,"\077\101\108\101\101")then SetupGUIForHeldMelee(M)weapon3Label.BackgroundColor3=onColor weapon3Label.Text=M.Name end end)

character.ChildAdded:Connect(function(newChild)
	if CollectionService:HasTag(newChild, "Gun") then
		SetupGUIForHeldGun(newChild)
		if #primaryWeaponSlot:GetChildren() == 0 then
			weapon1Label.BackgroundColor3 = onColor
			weapon1Label.Text = newChild.Name
		elseif #secondaryWeaponSlot:GetChildren() == 0 then
			weapon2Label.BackgroundColor3 = onColor
			weapon2Label.Text = newChild.Name
		end
	elseif CollectionService:HasTag(newChild, "Melee") then
		SetupGUIForHeldMelee(newChild)
		weapon3Label.BackgroundColor3 = onColor
		weapon3Label.Text = newChild.Name
	end
end)